May 2018
Intermediate to advanced
554 pages
13h 51m
English
Taking Deployment update into consideration is a good step towards building a CI/CD (continuous integration and continuous delivery) pipeline. For a more common usage, developers don't exploit command lines to update the Deployment. They may prefer to fire some API calls from CI/CD platform, or update from a previous configuration file. Here comes an example working with the subcommand apply:
// A simple nginx Kubernetes configuration file$ cat my-update-nginx.yamlapiVersion: apps/v1kind: Deploymentmetadata: name: my-update-nginxspec: replicas: 5 selector: matchLabels: run: simple-nginx template: metadata: labels: run: simple-nginx spec: containers: - name: simple-nginx image: nginx ports: - containerPort: 80// create the ...