mirror of https://github.com/helm/helm
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
58 lines
870 B
58 lines
870 B
# 1
|
|
kind: NetworkPolicy
|
|
apiVersion: networking.k8s.io/v1
|
|
metadata:
|
|
name: first
|
|
spec:
|
|
podSelector: {}
|
|
policyTypes:
|
|
- Egress
|
|
- Ingress
|
|
|
|
---
|
|
|
|
# 2
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: second
|
|
spec:
|
|
podSelector: {}
|
|
policyTypes:
|
|
- Egress
|
|
- Ingress
|
|
|
|
---
|
|
|
|
# 3
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: NetworkPolicy
|
|
metadata:
|
|
name: third
|
|
spec:
|
|
podSelector: {}
|
|
policyTypes:
|
|
- Egress
|
|
- Ingress
|
|
|
|
---
|
|
|
|
# 4 (Deployment should come after all NetworkPolicy manifests, since 'helm template' outputs in install order)
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: fourth
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
pod: fourth
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
pod: fourth
|
|
spec:
|
|
containers:
|
|
- name: hello-world
|
|
image: gcr.io/google-samples/node-hello:1.0
|