Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge "add configdb-nodemgr daemonset"
- Loading branch information
Showing
1 changed file
with
95 additions
and
0 deletions.
There are no files selected for viewing
95 changes: 95 additions & 0 deletions
95
contrail-thirdparty/templates/daemonset-configdb-nodemgr.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,95 @@ | ||
{{- if .Values.manifests.daemonset_configdb_nodemgr }} | ||
{{- $_ := set .Values "images" .Values.global.images }} | ||
{{- $context := . }} | ||
--- | ||
apiVersion: extensions/v1beta1 | ||
kind: DaemonSet | ||
metadata: | ||
name: contrail-configdb-nodemgr | ||
spec: | ||
{{ tuple $context "configdb_nodemgr" | include "helm-toolkit.snippets.kubernetes_upgrades_daemonset" | indent 2 }} | ||
template: | ||
metadata: | ||
labels: | ||
{{ tuple $context "opencontrail" "contrail-configdb-nodemgr" | include "helm-toolkit.snippets.kubernetes_metadata_labels" | indent 8 }} | ||
annotations: | ||
configmap-hash: {{ tuple "configmap-env.yaml" $context | include "helm-toolkit.utils.hash" }} | ||
spec: | ||
affinity: | ||
nodeAffinity: | ||
requiredDuringSchedulingIgnoredDuringExecution: | ||
nodeSelectorTerms: | ||
- matchExpressions: | ||
- key: {{ .Values.labels.configdb_nodemgr.node_selector_key }} | ||
operator: In | ||
values: | ||
- {{ .Values.labels.configdb_nodemgr.node_selector_value }} | ||
tolerations: | ||
- key: node-role.kubernetes.io/master | ||
operator: Exists | ||
effect: NoSchedule | ||
hostNetwork: true | ||
dnsPolicy: ClusterFirstWithHostNet | ||
imagePullSecrets: | ||
- name: contrail-thirdparty-docker-secret | ||
initContainers: | ||
{{ tuple $context .Values.dependencies.configdb_nodemgr nil | include "helm-toolkit.snippets.kubernetes_entrypoint_init_container" | indent 8 }} | ||
- name: contrail-node-init | ||
image: {{ .Values.global.images.tags.node_init | quote }} | ||
imagePullPolicy: {{ default "" .Values.global.images.imagePullPolicy | quote }} | ||
securityContext: | ||
privileged: true | ||
env: | ||
- name: CONTRAIL_STATUS_IMAGE | ||
value: {{ .Values.global.images.tags.contrail_status | quote }} | ||
envFrom: | ||
- configMapRef: | ||
name: contrail-thirdparty-env | ||
volumeMounts: | ||
- mountPath: /host/usr/bin | ||
name: host-usr-bin | ||
containers: | ||
- name: contrail-configdb-nodemgr | ||
image: {{ .Values.global.images.tags.nodemgr | quote }} | ||
imagePullPolicy: {{ default "" .Values.global.images.imagePullPolicy | quote }} | ||
envFrom: | ||
- configMapRef: | ||
name: contrail-thirdparty-env | ||
- configMapRef: | ||
name: contrail-thirdparty-keystone | ||
env: | ||
- name: NODE_TYPE | ||
value: config-database | ||
- name: DOCKER_HOST | ||
value: "unix://mnt/docker.sock" | ||
- name: CASSANDRA_CQL_PORT | ||
value: {{ .Values.global.contrail_env.CONFIGDB_CQL_PORT | default 9041 | quote }} | ||
- name: CASSANDRA_JMX_LOCAL_PORT | ||
value: {{ .Values.global.contrail_env.CONFIGDB_JMX_LOCAL_PORT | default 7200 | quote }} | ||
volumeMounts: | ||
- mountPath: /mnt/docker.sock | ||
name: docker-unix-socket | ||
- mountPath: /var/log/contrail/ | ||
name: contrail-log | ||
- mountPath: /var/crashes | ||
name: var-crashes-database | ||
- mountPath: /etc/contrail/ssl | ||
name: ssl-dir | ||
volumes: | ||
- name: docker-unix-socket | ||
hostPath: | ||
path: /var/run/docker.sock | ||
type: Socket | ||
- name: contrail-log | ||
hostPath: | ||
path: /var/log/contrail | ||
- name: var-crashes-database | ||
hostPath: | ||
path: /var/crashes | ||
- name: host-usr-bin | ||
hostPath: | ||
path: /usr/bin | ||
- name: ssl-dir | ||
hostPath: | ||
path: /etc/contrail/ssl | ||
{{- end }} |