Merge "Apply network policy to all services"
This commit is contained in:
commit
2d8acb9396
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:
|
metrics:
|
||||||
default: 24220
|
default: 24220
|
||||||
|
|
||||||
|
network_policy:
|
||||||
|
aodh:
|
||||||
|
ingress:
|
||||||
|
- {}
|
||||||
|
egress:
|
||||||
|
- {}
|
||||||
|
|
||||||
manifests:
|
manifests:
|
||||||
configmap_bin: true
|
configmap_bin: true
|
||||||
configmap_etc: true
|
configmap_etc: true
|
||||||
@ -711,6 +718,7 @@ manifests:
|
|||||||
job_ks_endpoints: true
|
job_ks_endpoints: true
|
||||||
job_ks_service: true
|
job_ks_service: true
|
||||||
job_ks_user: true
|
job_ks_user: true
|
||||||
|
network_policy: false
|
||||||
pdb_api: true
|
pdb_api: true
|
||||||
pod_aodh_test: true
|
pod_aodh_test: true
|
||||||
secret_db: true
|
secret_db: true
|
||||||
|
@ -2101,6 +2101,8 @@ network_policy:
|
|||||||
ceilometer:
|
ceilometer:
|
||||||
ingress:
|
ingress:
|
||||||
- {}
|
- {}
|
||||||
|
egress:
|
||||||
|
- {}
|
||||||
|
|
||||||
manifests:
|
manifests:
|
||||||
configmap_bin: true
|
configmap_bin: true
|
||||||
|
@ -350,6 +350,8 @@ network_policy:
|
|||||||
congress:
|
congress:
|
||||||
ingress:
|
ingress:
|
||||||
- {}
|
- {}
|
||||||
|
egress:
|
||||||
|
- {}
|
||||||
|
|
||||||
conf:
|
conf:
|
||||||
congress:
|
congress:
|
||||||
|
@ -679,6 +679,8 @@ network_policy:
|
|||||||
ironic:
|
ironic:
|
||||||
ingress:
|
ingress:
|
||||||
- {}
|
- {}
|
||||||
|
egress:
|
||||||
|
- {}
|
||||||
|
|
||||||
manifests:
|
manifests:
|
||||||
configmap_bin: true
|
configmap_bin: true
|
||||||
|
@ -622,24 +622,9 @@ pod:
|
|||||||
network_policy:
|
network_policy:
|
||||||
magnum:
|
magnum:
|
||||||
ingress:
|
ingress:
|
||||||
- from:
|
- {}
|
||||||
- podSelector:
|
egress:
|
||||||
matchLabels:
|
- {}
|
||||||
application: magnum
|
|
||||||
- podSelector:
|
|
||||||
matchLabels:
|
|
||||||
application: horizon
|
|
||||||
- podSelector:
|
|
||||||
matchLabels:
|
|
||||||
application: ingress
|
|
||||||
- podSelector:
|
|
||||||
matchLabels:
|
|
||||||
application: heat
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
port: 80
|
|
||||||
- protocol: TCP
|
|
||||||
port: 9511
|
|
||||||
|
|
||||||
manifests:
|
manifests:
|
||||||
configmap_bin: true
|
configmap_bin: true
|
||||||
|
@ -701,24 +701,9 @@ pod:
|
|||||||
network_policy:
|
network_policy:
|
||||||
mistral:
|
mistral:
|
||||||
ingress:
|
ingress:
|
||||||
- from:
|
- {}
|
||||||
- podSelector:
|
egress:
|
||||||
matchLabels:
|
- {}
|
||||||
application: mistral
|
|
||||||
- podSelector:
|
|
||||||
matchLabels:
|
|
||||||
application: horizon
|
|
||||||
- podSelector:
|
|
||||||
matchLabels:
|
|
||||||
application: ingress
|
|
||||||
- podSelector:
|
|
||||||
matchLabels:
|
|
||||||
application: heat
|
|
||||||
ports:
|
|
||||||
- protocol: TCP
|
|
||||||
port: 80
|
|
||||||
- protocol: TCP
|
|
||||||
port: 8989
|
|
||||||
|
|
||||||
manifests:
|
manifests:
|
||||||
configmap_bin: true
|
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:
|
metrics:
|
||||||
default: 24220
|
default: 24220
|
||||||
|
|
||||||
|
network_policy:
|
||||||
|
panko:
|
||||||
|
ingress:
|
||||||
|
- {}
|
||||||
|
egress:
|
||||||
|
- {}
|
||||||
|
|
||||||
pod:
|
pod:
|
||||||
security_context:
|
security_context:
|
||||||
panko:
|
panko:
|
||||||
@ -606,6 +613,7 @@ manifests:
|
|||||||
job_ks_endpoints: true
|
job_ks_endpoints: true
|
||||||
job_ks_service: true
|
job_ks_service: true
|
||||||
job_ks_user: true
|
job_ks_user: true
|
||||||
|
network_policy: false
|
||||||
pdb_api: true
|
pdb_api: true
|
||||||
pod_rally_test: true
|
pod_rally_test: true
|
||||||
secret_db: true
|
secret_db: true
|
||||||
|
@ -658,6 +658,8 @@ network_policy:
|
|||||||
senlin:
|
senlin:
|
||||||
ingress:
|
ingress:
|
||||||
- {}
|
- {}
|
||||||
|
egress:
|
||||||
|
- {}
|
||||||
|
|
||||||
manifests:
|
manifests:
|
||||||
configmap_bin: true
|
configmap_bin: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user