Preparation CKA
Par pepin le dimanche, août 7 2022, 10:37 - Kubernetes - Lien permanent
Creation de pod
kubectl run my-nginx --image=nginx --dry-run=client -o yaml > nginx.yaml kubectl apply -f nginx.yaml
Exposition de pod
kubectl expose pod my-nginx --port=80 --name=my-frontend
Create (le createur de tout ...)
kubectl create deployment nginx --image=nginx/1.7.1 --port 80 --replicas 2 --dry-run -o yaml > deploy-nginx.yaml
C'est ce genre de réponses qu'il faudra utiliser plutot que d'écrire des yaml intégralement manuellement.