116931bb51
* Rename common chart to helm-toolkit * Update useage of helpers to include reference to chart they come from. * Update helm-toolkit function naming Also catches several functions missed in previous PS * Update remaining requirements.yaml to use helm-toolbox * Dep Check container fix for common -> helm-toolbox renaming
75 lines
2.6 KiB
YAML
75 lines
2.6 KiB
YAML
{{- $envAll := . }}
|
|
{{- $dependencies := .Values.dependencies.registry }}
|
|
apiVersion: extensions/v1beta1
|
|
kind: Deployment
|
|
metadata:
|
|
name: glance-registry
|
|
spec:
|
|
{{- if .Values.development.enabled }}
|
|
replicas: 1
|
|
{{- else }}
|
|
replicas: {{ .Values.replicas.registry }}
|
|
{{- end }}
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: glance-registry
|
|
annotations:
|
|
configmap-bin-hash: {{ tuple "configmap-bin.yaml" . | include "helm-toolkit.hash" }}
|
|
configmap-etc-hash: {{ tuple "configmap-etc.yaml" . | include "helm-toolkit.hash" }}
|
|
pod.beta.kubernetes.io/init-containers: '[
|
|
{{ tuple $envAll $dependencies | include "helm-toolkit.kubernetes_entrypoint_init_container" | indent 10 }}
|
|
]'
|
|
spec:
|
|
nodeSelector:
|
|
{{ .Values.labels.node_selector_key }}: {{ .Values.labels.node_selector_value }}
|
|
containers:
|
|
- name: glance-registry
|
|
image: {{ .Values.images.registry }}
|
|
imagePullPolicy: {{ .Values.images.pull_policy }}
|
|
{{- if .Values.resources.enabled }}
|
|
resources:
|
|
limits:
|
|
cpu: {{ .Values.resources.registry.limits.cpu | quote }}
|
|
memory: {{ .Values.resources.registry.limits.memory | quote }}
|
|
requests:
|
|
cpu: {{ .Values.resources.registry.requests.cpu | quote }}
|
|
memory: {{ .Values.resources.registry.requests.memory | quote }}
|
|
{{- end }}
|
|
command:
|
|
- glance-registry
|
|
- --config-file
|
|
- /etc/glance/glance-registry.conf
|
|
ports:
|
|
- containerPort: {{ .Values.network.port.registry }}
|
|
readinessProbe:
|
|
tcpSocket:
|
|
port: {{ .Values.network.port.registry }}
|
|
volumeMounts:
|
|
- name: etcglance
|
|
mountPath: /etc/glance
|
|
- name: glanceregistryconf
|
|
mountPath: /etc/glance/glance-registry.conf
|
|
subPath: glance-registry.conf
|
|
readOnly: true
|
|
- name: glanceregistrypaste
|
|
mountPath: /etc/glance/glance-registry-paste.ini
|
|
subPath: glance-registry-paste.ini
|
|
readOnly: true
|
|
- name: glancepolicy
|
|
mountPath: /etc/glance/policy.json
|
|
subPath: policy.json
|
|
readOnly: true
|
|
volumes:
|
|
- name: etcglance
|
|
emptyDir: {}
|
|
- name: glanceregistryconf
|
|
configMap:
|
|
name: glance-etc
|
|
- name: glanceregistrypaste
|
|
configMap:
|
|
name: glance-etc
|
|
- name: glancepolicy
|
|
configMap:
|
|
name: glance-etc
|