fix syntax error
This commit is contained in:
parent
a27e9e871f
commit
2131b4c59b
1 changed files with 16 additions and 15 deletions
|
|
@ -1,14 +1,14 @@
|
|||
apiVersion: networking.k8s.io/v1
|
||||
kind: NetworkPolicy
|
||||
metadata:
|
||||
name: {? {.Values.name: ''} : ''}
|
||||
namespace: {? {.Values.namespace | default .Values.name: ''} : ''}
|
||||
name: {{ .Values.name }}
|
||||
namespace: {{ .Values.namespace | default .Values.name }}
|
||||
labels:
|
||||
service: {? {.Values.name: ''} : ''}
|
||||
service: {{ .Values.name }}
|
||||
spec:
|
||||
podSelector:
|
||||
matchLabels:
|
||||
service: {? {.Values.name: ''} : ''}
|
||||
service: {{ .Values.name }}
|
||||
policyTypes:
|
||||
- Ingress
|
||||
- Egress
|
||||
|
|
@ -19,14 +19,15 @@ spec:
|
|||
name: ingress-nginx
|
||||
ports:
|
||||
- protocol: TCP
|
||||
port: {? {.Values.port: ''} : ''}
|
||||
egress: {}
|
||||
# TODO, optionally add egress restriction.
|
||||
# - to:
|
||||
# - namespaceSelector: {}
|
||||
# podSelector: {}
|
||||
# ports:
|
||||
# - protocol: TCP
|
||||
# port: 53
|
||||
# - protocol: UDP
|
||||
# port: 53
|
||||
port: {{ .Values.port }}
|
||||
egress:
|
||||
- {}
|
||||
# TODO, optionally add egress restriction.
|
||||
# - to:
|
||||
# - namespaceSelector: {}
|
||||
# podSelector: {}
|
||||
# ports:
|
||||
# - protocol: TCP
|
||||
# port: 53
|
||||
# - protocol: UDP
|
||||
# port: 53
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue