Show pageOld revisionsBacklinksBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. # kubectl create ## Create yaml file <code> kubectl create deployment --image=nginx nginx --replicas=4 --dry-run=client -o yaml > nginx-deployment.yaml </code> ## YAML in Kubernetes {{ https://i.imgur.com/A5siDQ8.jpg?400 }} <code> kubectl create -f pod-definition.yml </code> <code> kubectl create secret tls tls-certificate --key nginx-selfsigned.key --cert nginx-selfsigned.crt </code> <code> $ kubectl get secret NAME TYPE DATA AGE default-token-mwh6r kubernetes.io/service-account-token 3 2d7h tls-certificate kubernetes.io/tls 2 23s </code> open/kubectl-create.txt Last modified: 2024/10/05 06:15by 127.0.0.1