Merge "Add ingress network policy for Nagios"
This commit is contained in:
commit
6f6783bf23
@ -185,6 +185,11 @@ network:
|
|||||||
enabled: false
|
enabled: false
|
||||||
port: 30925
|
port: 30925
|
||||||
|
|
||||||
|
network_policy:
|
||||||
|
nagios:
|
||||||
|
ingress:
|
||||||
|
- {}
|
||||||
|
|
||||||
pod:
|
pod:
|
||||||
lifecycle:
|
lifecycle:
|
||||||
upgrades:
|
upgrades:
|
||||||
|
@ -19,7 +19,7 @@ set -xe
|
|||||||
#NOTE: Lint and package chart
|
#NOTE: Lint and package chart
|
||||||
make nagios
|
make nagios
|
||||||
|
|
||||||
tee /tmp/nagios.yaml <<EOF
|
tee /tmp/nagios.yaml << EOF
|
||||||
manifests:
|
manifests:
|
||||||
network_policy: true
|
network_policy: true
|
||||||
network_policy:
|
network_policy:
|
||||||
@ -29,14 +29,18 @@ network_policy:
|
|||||||
- podSelector:
|
- podSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
application: nagios
|
application: nagios
|
||||||
|
- podSelector:
|
||||||
|
matchLabels:
|
||||||
|
application: ingress
|
||||||
ports:
|
ports:
|
||||||
- protocol: TCP
|
|
||||||
port: 8000
|
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: 80
|
port: 80
|
||||||
|
- protocol: TCP
|
||||||
|
port: 8000
|
||||||
|
- protocol:
|
||||||
|
port: 443
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
|
||||||
#NOTE: Deploy command
|
#NOTE: Deploy command
|
||||||
helm upgrade --install nagios ./nagios \
|
helm upgrade --install nagios ./nagios \
|
||||||
--namespace=osh-infra \
|
--namespace=osh-infra \
|
||||||
|
@ -52,6 +52,7 @@ function test_netpol {
|
|||||||
test_netpol osh-infra mariadb server elasticsearch.osh-infra.svc.cluster.local fail
|
test_netpol osh-infra mariadb server elasticsearch.osh-infra.svc.cluster.local fail
|
||||||
test_netpol osh-infra mariadb server nagios.osh-infra.svc.cluster.local fail
|
test_netpol osh-infra mariadb server nagios.osh-infra.svc.cluster.local fail
|
||||||
test_netpol osh-infra mariadb server prometheus.osh-infra.svc.cluster.local fail
|
test_netpol osh-infra mariadb server prometheus.osh-infra.svc.cluster.local fail
|
||||||
|
test_netpol osh-infra mariadb server nagios.osh-infra.svc.cluster.local fail
|
||||||
|
|
||||||
# Doing positive tests
|
# Doing positive tests
|
||||||
test_netpol osh-infra grafana dashboard mariadb.osh-infra.svc.cluster.local:3306 success
|
test_netpol osh-infra grafana dashboard mariadb.osh-infra.svc.cluster.local:3306 success
|
||||||
|
Loading…
Reference in New Issue
Block a user