mirror of
https://github.com/foomo/gograpple.git
synced 2026-08-12 20:30:20 +00:00
30 lines
755 B
YAML
30 lines
755 B
YAML
|
|
spec:
|
|
template:
|
|
metadata:
|
|
labels:
|
|
{{ .Label }}: "true"
|
|
spec:
|
|
containers:
|
|
- name: {{ .Container }}
|
|
image: {{ .Image }}
|
|
command:
|
|
args:
|
|
livenessProbe:
|
|
readinessProbe:
|
|
volumeMounts:
|
|
- name: patch-configmap
|
|
mountPath: {{ .ConfigMapMount }}
|
|
{{ range $i, $mount := .Mounts }}
|
|
- name: "patch-mount-{{ $i }}"
|
|
mountPath: {{ $mount.MountPath }}
|
|
{{ end }}
|
|
volumes:
|
|
- name: patch-configmap
|
|
configMap:
|
|
name: {{ .Deployment }}
|
|
{{ range $i, $mount := .Mounts }}
|
|
- name: "patch-mount-{{ $i }}"
|
|
hostPath:
|
|
path: {{ $mount.HostPath }}
|
|
{{ end }} |