2022-08-16 09:40:54 +00:00
|
|
|
---
|
|
|
|
apiVersion: networking.k8s.io/v1
|
|
|
|
kind: NetworkPolicy
|
|
|
|
metadata:
|
|
|
|
name: mysql-operator
|
|
|
|
spec:
|
|
|
|
podSelector: {}
|
|
|
|
policyTypes:
|
2022-09-16 05:40:31 +00:00
|
|
|
- Egress
|
2022-08-16 09:40:54 +00:00
|
|
|
egress:
|
|
|
|
- # TODO: Not sure why mysql-operator needs to be able to connect
|
|
|
|
to:
|
|
|
|
- namespaceSelector: {}
|
|
|
|
ports:
|
2022-09-16 05:40:31 +00:00
|
|
|
- protocol: TCP
|
|
|
|
port: 33060
|
2022-08-16 09:40:54 +00:00
|
|
|
- protocol: TCP
|
|
|
|
port: 3306
|