Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: nginx-behind-nat
- spec:
- selector:
- matchLabels:
- run: nginx-behind-nat
- replicas: 1
- template:
- metadata:
- labels:
- run: nginx-behind-nat
- spec:
- containers:
- - name: nginx-behind-nat
- image: nginx
- ports:
- - containerPort: 80
- nodeSelector:
- kubernetes.io/hostname: node2
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: nginx-behind-nat
- labels:
- run: nginx-behind-nat
- spec:
- ports:
- - port: 80
- protocol: TCP
- targetPort: 80
- selector:
- run: nginx-behind-nat
- type: NodePort
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement