mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Static, overridable container name
This commit is contained in:
@@ -45,7 +45,7 @@ The following tables lists the configurable parameters of the Spartakus chart an
|
||||
| Parameter | Description | Default |
|
||||
| ------------------------------- | ------------------------------- | ---------------------------------------------------------- |
|
||||
| `containerImage` | Container image | `gcr.io/google_containers/spartakus-amd64:{VERSION}` |
|
||||
| `containerName` | Container name | Dynamically generated based on the chart & release names |
|
||||
| `containerName` | Container name | `spartakus` |
|
||||
| `imagePullPolicy` | Image pull policy | `Always` if `image` tag is `latest`, else `IfNotPresent` |
|
||||
| `resources.requests.cpu` | CPU resource request | `2m` |
|
||||
| `resources.requests.memory` | Memory resource request | `8Mi` |
|
||||
|
||||
@@ -16,7 +16,7 @@ spec:
|
||||
release: "{{ .Release.Name }}"
|
||||
spec:
|
||||
containers:
|
||||
- name: {{ if .Values.containerName }}"{{ .Values.containerName }}"{{ else }}{{ template "fullname" . }}{{ end }}
|
||||
- name: {{ default "spartakus" .Values.containerName | quote }}
|
||||
image: "{{ .Values.containerImage }}"
|
||||
imagePullPolicy: {{ default "" .Values.imagePullPolicy | quote }}
|
||||
args:
|
||||
|
||||
@@ -3,11 +3,11 @@
|
||||
containerImage: gcr.io/google_containers/spartakus-amd64:v1.0.0
|
||||
|
||||
## Container name
|
||||
## If not provided, Helm will template a name based on the chart & release names
|
||||
## Default: 'spartakus'
|
||||
##
|
||||
## containerName: spartakus
|
||||
## containerName:
|
||||
|
||||
## Global imagePullPolicy
|
||||
## imagePullPolicy
|
||||
## Default: 'Always' if image tag is 'latest', else 'IfNotPresent'
|
||||
## Ref: http://kubernetes.io/docs/user-guide/images/#pre-pulling-images
|
||||
##
|
||||
|
||||
Reference in New Issue
Block a user