Skip to content

Commit

Permalink
Fix nodemgr definitions due to config-database nodemgr
Browse files Browse the repository at this point in the history
Partial-Bug: #1765487
Change-Id: Icf0d1aa8d212837e572812c2a07c36e0ff2a5047
  • Loading branch information
Andrey-mp committed Jul 16, 2018
1 parent c65955f commit 235d4f3
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 18 deletions.
33 changes: 24 additions & 9 deletions roles/contrail_master/templates/contrail-installer-5.1.j2
Expand Up @@ -244,7 +244,7 @@ spec:
name: analyticsdb-data
- mountPath: /var/log/cassandra
name: analyticsdb-log
- name: contrail-analytics-nodemgr
- name: contrail-analyticsdb-nodemgr
image: "ci-repo.englab.juniper.net:5000/contrail-nodemgr:{{ contrail_container_tag }}"
imagePullPolicy: ""
securityContext:
Expand All @@ -255,7 +255,7 @@ spec:
- configMapRef:
name: nodemgr-config
- configMapRef:
name: contrail-analytics-zookeeper
name: contrail-analyticsdb-config
env:
- name: NODE_TYPE
value: database
Expand Down Expand Up @@ -316,13 +316,34 @@ spec:
name: configdb-data
- mountPath: /var/log/cassandra
name: configdb-log
- name: contrail-configdb-nodemgr
image: "ci-repo.englab.juniper.net:5000/contrail-nodemgr:{{ contrail_container_tag }}"
imagePullPolicy: ""
securityContext:
privileged: true
envFrom:
- configMapRef:
name: env
- configMapRef:
name: nodemgr-config
- configMapRef:
name: contrail-configdb-config
env:
- name: NODE_TYPE
value: config-database
volumeMounts:
- mountPath: /mnt
name: docker-unix-socket
volumes:
- name: configdb-data
hostPath:
path: /var/lib/contrail/configdb
- name: configdb-log
hostPath:
path: /var/log/contrail/configdb
- name: docker-unix-socket
hostPath:
path: /var/run
{% if contrail_registry_username is defined and contrail_registry_password %}
imagePullSecrets:
- name: contrail-registry-secret
Expand Down Expand Up @@ -476,8 +497,6 @@ spec:
name: env
- configMapRef:
name: nodemgr-config
- configMapRef:
name: contrail-analytics-zookeeper
env:
- name: NODE_TYPE
value: analytics
Expand Down Expand Up @@ -592,7 +611,7 @@ spec:
name: dns-config
- mountPath: /var/log/contrail
name: control-logs
- name: contrail-controller-nodemgr
- name: contrail-controller-control-nodemgr
image: "{{ contrail_registry }}/contrail-nodemgr:{{ contrail_container_tag }}"
imagePullPolicy: ""
securityContext:
Expand All @@ -602,8 +621,6 @@ spec:
name: env
- configMapRef:
name: nodemgr-config
- configMapRef:
name: contrail-config-zookeeper
env:
- name: NODE_TYPE
value: control
Expand Down Expand Up @@ -739,8 +756,6 @@ spec:
name: env
- configMapRef:
name: nodemgr-config
- configMapRef:
name: contrail-config-zookeeper
env:
- name: NODE_TYPE
value: config
Expand Down
33 changes: 24 additions & 9 deletions roles/contrail_master/templates/contrail-installer-5.j2
Expand Up @@ -292,7 +292,7 @@ spec:
name: analyticsdb-data
- mountPath: /var/log/cassandra
name: analyticsdb-log
- name: contrail-analytics-nodemgr
- name: contrail-analyticsdb-nodemgr
image: "{{ contrail_registry }}/contrail-nodemgr:{{ contrail_container_tag }}"
imagePullPolicy: ""
securityContext:
Expand All @@ -303,7 +303,7 @@ spec:
- configMapRef:
name: nodemgr-config
- configMapRef:
name: contrail-analytics-zookeeper
name: contrail-analyticsdb-config
env:
- name: NODE_TYPE
value: database
Expand Down Expand Up @@ -364,13 +364,34 @@ spec:
name: configdb-data
- mountPath: /var/log/cassandra
name: configdb-log
- name: contrail-configdb-nodemgr
image: "{{ contrail_registry }}/contrail-nodemgr:{{ contrail_container_tag }}"
imagePullPolicy: ""
securityContext:
privileged: true
envFrom:
- configMapRef:
name: env
- configMapRef:
name: nodemgr-config
- configMapRef:
name: contrail-configdb-config
env:
- name: NODE_TYPE
value: config-database
volumeMounts:
- mountPath: /mnt
name: docker-unix-socket
volumes:
- name: configdb-data
hostPath:
path: /var/lib/contrail/configdb
- name: configdb-log
hostPath:
path: /var/log/contrail/configdb
- name: docker-unix-socket
hostPath:
path: /var/run
{% if contrail_registry_username is defined and contrail_registry_password %}
imagePullSecrets:
- name: contrail-registry-secret
Expand Down Expand Up @@ -563,8 +584,6 @@ spec:
name: env
- configMapRef:
name: nodemgr-config
- configMapRef:
name: contrail-analytics-zookeeper
env:
- name: NODE_TYPE
value: analytics
Expand Down Expand Up @@ -679,7 +698,7 @@ spec:
name: dns-config
- mountPath: /var/log/contrail
name: control-logs
- name: contrail-controller-nodemgr
- name: contrail-controller-control-nodemgr
image: "{{ contrail_registry }}/contrail-nodemgr:{{ contrail_container_tag }}"
imagePullPolicy: ""
securityContext:
Expand All @@ -689,8 +708,6 @@ spec:
name: env
- configMapRef:
name: nodemgr-config
- configMapRef:
name: contrail-config-zookeeper
env:
- name: NODE_TYPE
value: control
Expand Down Expand Up @@ -826,8 +843,6 @@ spec:
name: env
- configMapRef:
name: nodemgr-config
- configMapRef:
name: contrail-config-zookeeper
env:
- name: NODE_TYPE
value: config
Expand Down

0 comments on commit 235d4f3

Please sign in to comment.