Apply network policy to all services
The base network policy framework currently applies only to some OpenStack services' charts but not others. This patch set applies the same base network policies framework to all services. Change-Id: I786c68057f6742a79a33f78db6e3bba8b99cf1b8 Signed-off-by: Tin Lam <tin@irrational.io>
This commit is contained in:
parent
24f9b2322a
commit
e8e5072a18
18
aodh/templates/network_policy.yaml
Normal file
18
aodh/templates/network_policy.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
{{/*
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/}}
|
||||
|
||||
{{- if .Values.manifests.network_policy -}}
|
||||
{{- $opts := dict "envAll" . "name" "application" "label" "aodh" -}}
|
||||
{{ $opts | include "helm-toolkit.manifests.kubernetes_network_policy" }}
|
||||
{{- end -}}
|
@ -693,6 +693,13 @@ endpoints:
|
||||
metrics:
|
||||
default: 24220
|
||||
|
||||
network_policy:
|
||||
aodh:
|
||||
ingress:
|
||||
- {}
|
||||
egress:
|
||||
- {}
|
||||
|
||||
manifests:
|
||||
configmap_bin: true
|
||||
configmap_etc: true
|
||||
@ -711,6 +718,7 @@ manifests:
|
||||
job_ks_endpoints: true
|
||||
job_ks_service: true
|
||||
job_ks_user: true
|
||||
network_policy: false
|
||||
pdb_api: true
|
||||
pod_aodh_test: true
|
||||
secret_db: true
|
||||
|
@ -2101,6 +2101,8 @@ network_policy:
|
||||
ceilometer:
|
||||
ingress:
|
||||
- {}
|
||||
egress:
|
||||
- {}
|
||||
|
||||
manifests:
|
||||
configmap_bin: true
|
||||
|
@ -350,6 +350,8 @@ network_policy:
|
||||
congress:
|
||||
ingress:
|
||||
- {}
|
||||
egress:
|
||||
- {}
|
||||
|
||||
conf:
|
||||
congress:
|
||||
|
@ -697,6 +697,8 @@ network_policy:
|
||||
ironic:
|
||||
ingress:
|
||||
- {}
|
||||
egress:
|
||||
- {}
|
||||
|
||||
manifests:
|
||||
configmap_bin: true
|
||||
|
@ -622,24 +622,9 @@ pod:
|
||||
network_policy:
|
||||
magnum:
|
||||
ingress:
|
||||
- from:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
application: magnum
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
application: horizon
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
application: ingress
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
application: heat
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
- protocol: TCP
|
||||
port: 9511
|
||||
- {}
|
||||
egress:
|
||||
- {}
|
||||
|
||||
manifests:
|
||||
configmap_bin: true
|
||||
|
@ -701,24 +701,9 @@ pod:
|
||||
network_policy:
|
||||
mistral:
|
||||
ingress:
|
||||
- from:
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
application: mistral
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
application: horizon
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
application: ingress
|
||||
- podSelector:
|
||||
matchLabels:
|
||||
application: heat
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: 80
|
||||
- protocol: TCP
|
||||
port: 8989
|
||||
- {}
|
||||
egress:
|
||||
- {}
|
||||
|
||||
manifests:
|
||||
configmap_bin: true
|
||||
|
18
panko/templates/network_policy.yaml
Normal file
18
panko/templates/network_policy.yaml
Normal file
@ -0,0 +1,18 @@
|
||||
{{/*
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/}}
|
||||
|
||||
{{- if .Values.manifests.network_policy -}}
|
||||
{{- $opts := dict "envAll" . "name" "application" "label" "panko" -}}
|
||||
{{ $opts | include "helm-toolkit.manifests.kubernetes_network_policy" }}
|
||||
{{- end -}}
|
@ -454,6 +454,13 @@ endpoints:
|
||||
metrics:
|
||||
default: 24220
|
||||
|
||||
network_policy:
|
||||
panko:
|
||||
ingress:
|
||||
- {}
|
||||
egress:
|
||||
- {}
|
||||
|
||||
pod:
|
||||
security_context:
|
||||
panko:
|
||||
@ -606,6 +613,7 @@ manifests:
|
||||
job_ks_endpoints: true
|
||||
job_ks_service: true
|
||||
job_ks_user: true
|
||||
network_policy: false
|
||||
pdb_api: true
|
||||
pod_rally_test: true
|
||||
secret_db: true
|
||||
|
@ -658,6 +658,8 @@ network_policy:
|
||||
senlin:
|
||||
ingress:
|
||||
- {}
|
||||
egress:
|
||||
- {}
|
||||
|
||||
manifests:
|
||||
configmap_bin: true
|
||||
|
Loading…
Reference in New Issue
Block a user