Добавить
Уведомления

Deploy nginx in k3s cluster

Deploy nginx in k3s cluster 1. Create nginx deployment / service $ kubectl create deploy nginx --image nginx --port 80 $ kubectl expose deploy nginx --port 80 2. Create w3m depoyment / access shell $ kubectl apply -f - {{"EOF" apiVersion: apps/v1 kind: Deployment metadata: name: w3m spec: selector: matchLabels: app: w3m template: metadata: labels: app: w3m spec: containers: - stdin: true tty: true image: nhannht/w3m name: w3m EOF $ kubectl exec -it $(kubectl get pods -l app=w3m -o name) w3m nginx

Иконка канала Кодерские решения
8 подписчиков
12+
16 просмотров
2 года назад
12+
16 просмотров
2 года назад

Deploy nginx in k3s cluster 1. Create nginx deployment / service $ kubectl create deploy nginx --image nginx --port 80 $ kubectl expose deploy nginx --port 80 2. Create w3m depoyment / access shell $ kubectl apply -f - {{"EOF" apiVersion: apps/v1 kind: Deployment metadata: name: w3m spec: selector: matchLabels: app: w3m template: metadata: labels: app: w3m spec: containers: - stdin: true tty: true image: nhannht/w3m name: w3m EOF $ kubectl exec -it $(kubectl get pods -l app=w3m -o name) w3m nginx

, чтобы оставлять комментарии