Deploying Nginx with Different Image Versions for Dev and Prod Environments
nginx-chart/
│
├── Chart.yaml
│
├── charts/ # initially empty
│
├── templates/ # Templates
│ ├── deployment.yaml
│ └── service.yaml
| # Values
├── values.yaml # Base
├── values-dev.yaml # Dev
└── values-prod.yaml # Prod -
-
-
helminstallmy-prod-releasepath_to_dir-fvalues-prod.yamlmy-prod-release- unique name for release_path_to_dirpath to dir containing Chart.yamlvalues-prod.yamlvalues to inject
This creates a new release in multiple steps:
- 1). renders manifest files (ie creates with values injected) for kubectl, in-memory
- 2).calls
kubectl apply -fon these files - 3).stores release metadata in a Kubernetes secret
- can subsequently be queried with
helm lsandhelm status
- can subsequently be queried with
-
helmtemplatemy-prod-release.......<same parms as install>only does 1) above - and prints to stdout> local_file.yamlif you want to save manifests aslocal file
-
-
helminstallmy-dev-releasenginx-chart -fvalues-dev.yaml
-