Deployment
Overview
See the official documentation.
Operations
List the deployments
Current namespace:
kubectl get deployment
Specific namespace:
kubectl -n ${namespace} get deployment
All namespaces:
kubectl get -A deployment
Create a deployment
Current namespace:
kubectl apply -f ${file}
Specific namespace:
kubectl -n ${namespace} apply -f ${file}
Example deployment file (i.e. ${file}
):
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 |
|
Expose a deployment
See the Service documentation.