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
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: NetworkPolicy
|
kind: NetworkPolicy
|
||||||
metadata:
|
metadata:
|
||||||
name: {? {.Values.name: ''} : ''}
|
name: {{ .Values.name }}
|
||||||
namespace: {? {.Values.namespace | default .Values.name: ''} : ''}
|
namespace: {{ .Values.namespace | default .Values.name }}
|
||||||
labels:
|
labels:
|
||||||
service: {? {.Values.name: ''} : ''}
|
service: {{ .Values.name }}
|
||||||
spec:
|
spec:
|
||||||
podSelector:
|
podSelector:
|
||||||
matchLabels:
|
matchLabels:
|
||||||
service: {? {.Values.name: ''} : ''}
|
service: {{ .Values.name }}
|
||||||
policyTypes:
|
policyTypes:
|
||||||
- Ingress
|
- Ingress
|
||||||
- Egress
|
- Egress
|
||||||
|
|
@ -19,14 +19,15 @@ spec:
|
||||||
name: ingress-nginx
|
name: ingress-nginx
|
||||||
ports:
|
ports:
|
||||||
- protocol: TCP
|
- protocol: TCP
|
||||||
port: {? {.Values.port: ''} : ''}
|
port: {{ .Values.port }}
|
||||||
egress: {}
|
egress:
|
||||||
# TODO, optionally add egress restriction.
|
- {}
|
||||||
# - to:
|
# TODO, optionally add egress restriction.
|
||||||
# - namespaceSelector: {}
|
# - to:
|
||||||
# podSelector: {}
|
# - namespaceSelector: {}
|
||||||
# ports:
|
# podSelector: {}
|
||||||
# - protocol: TCP
|
# ports:
|
||||||
# port: 53
|
# - protocol: TCP
|
||||||
# - protocol: UDP
|
# port: 53
|
||||||
# port: 53
|
# - protocol: UDP
|
||||||
|
# port: 53
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue