policy-generator/example/config.yaml
Erik Brakkee b8dfaa55a4 fixed issues with schema of network policy
also fixed encoding of matahLabels. Now using json format so that it
also works for empty maps.
2025-01-03 00:10:32 +01:00

66 lines
1.1 KiB
YAML

networks:
- name: internet
cidr: 0.0.0.0/0
except:
- 10.0.0.0/8
- 172.16.0.0/12
- 192.168.0.0/16
ports:
- port: 2303
namespaces:
- name: wamblee-org
#open: true
capabilities:
- linkerdd
- dns
applications:
- name: nexus-server
# ports when specified at the application level are used when
# not explicitly mentioned when a link is made
ports:
- port: 8081
- port: 8082
protocol: UDP
matchLabels:
app: nexus-server
- name: exposure
open: false
applications:
- name: httpd-wamblee-org
matchLabels:
app: wamblee-org
ports:
- port: 1000
- port: 1001
protocol: UDP
communications:
- from: # can we support both string and list of strings?
- httpd-wamblee-org
#- internet
#- apiserver
to:
- nexus-server
- internet
ports:
- port: 53
protocol: UDP
# # or limiting ports further
# - from:
# - httpd-wamblee-org
# to:
# - nexus-server
# ports:
# - 8081
# - 8082