mirror of
https://github.com/helm/charts.git
synced 2026-08-23 22:37:45 +00:00
Use name template for container
This commit is contained in:
@@ -44,8 +44,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 | `spartakus` |
|
||||
| `image` | Container image | `gcr.io/google_containers/spartakus-amd64:{VERSION}` |
|
||||
| `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,8 +16,8 @@ spec:
|
||||
release: "{{ .Release.Name }}"
|
||||
spec:
|
||||
containers:
|
||||
- name: {{ default "spartakus" .Values.containerName | quote }}
|
||||
image: "{{ .Values.containerImage }}"
|
||||
- name: {{ template "name" . }}
|
||||
image: "{{ .Values.image }}"
|
||||
imagePullPolicy: {{ default "" .Values.imagePullPolicy | quote }}
|
||||
args:
|
||||
- volunteer
|
||||
|
||||
@@ -1,11 +1,6 @@
|
||||
## Container image
|
||||
##
|
||||
containerImage: gcr.io/google_containers/spartakus-amd64:v1.0.0
|
||||
|
||||
## Container name
|
||||
## Default: 'spartakus'
|
||||
##
|
||||
## containerName:
|
||||
image: gcr.io/google_containers/spartakus-amd64:v1.0.0
|
||||
|
||||
## imagePullPolicy
|
||||
## Default: 'Always' if image tag is 'latest', else 'IfNotPresent'
|
||||
|
||||
Reference in New Issue
Block a user