Skip to content

Commit

Permalink
Merge "add configdb-nodemgr daemonset"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul v3 CI authored and opencontrail-ci-admin committed Jul 24, 2018
2 parents 487b0bf + 32034c3 commit b24765f
Showing 1 changed file with 95 additions and 0 deletions.
95 changes: 95 additions & 0 deletions contrail-thirdparty/templates/daemonset-configdb-nodemgr.yaml
@@ -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 }}

0 comments on commit b24765f

Please sign in to comment.