Fixed labeling for Neutron

Change-Id: I5918fe4ab07a9055f25fd8eb8eedbc0828410782
This commit is contained in:
Mohammed Naser 2020-08-19 07:43:31 -04:00
parent 40ca6cd8e0
commit 4c29b26caf
4 changed files with 10 additions and 4 deletions

View File

@ -19,7 +19,7 @@ metadata:
name: neutron
namespace: openstack
labels:
{{ labels("neutron") | indent(4) }}
{{ labels("neutron", component="server") | indent(4) }}
spec:
updateStrategy:
rollingUpdate:
@ -27,11 +27,11 @@ spec:
type: RollingUpdate
selector:
matchLabels:
{{ labels("neutron") | indent(6) }}
{{ labels("neutron", component="server") | indent(6) }}
template:
metadata:
labels:
{{ labels("neutron") | indent(8) }}
{{ labels("neutron", component="server") | indent(8) }}
spec:
automountServiceAccountToken: false
initContainers:

View File

@ -18,6 +18,8 @@ kind: Rabbitmq
metadata:
name: neutron
namespace: openstack
labels:
{{ labels("neutron") | indent(4) }}
spec:
authSecret: neutron-rabbitmq
nodeSelector:

View File

@ -2,6 +2,8 @@ apiVersion: v1
metadata:
name: neutron-rabbitmq
namespace: openstack
labels:
{{ labels("neutron") | indent(4) }}
stringData:
username: neutron
password: {{ password }}

View File

@ -18,6 +18,8 @@ kind: Service
metadata:
name: neutron
namespace: openstack
labels:
{{ labels("neutron", component="server") | indent(4) }}
spec:
ports:
- name: neutron
@ -25,4 +27,4 @@ spec:
protocol: TCP
targetPort: neutron
selector:
{{ labels("neutron") | indent(4) }}
{{ labels("neutron", component="server") | indent(4) }}