k3s/tests/e2e/amd64_resource_files/dualstack_nodeport.yaml
Derek Nola 12695cea15
E2E: Dualstack test (#5617)
* E2E dualstack test
* Improve testing documentation

Signed-off-by: Derek Nola <derek.nola@suse.com>
2022-06-14 08:40:29 -07:00

37 lines
658 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: ds-nodeport-pod
spec:
selector:
matchLabels:
k8s-app: nginx-app-nodeport
replicas: 2
template:
metadata:
labels:
k8s-app: nginx-app-nodeport
spec:
containers:
- name: nginx
image: ranchertest/mytestcontainer
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
labels:
k8s-app: nginx-app-nodeport
name: ds-nodeport-svc
namespace: default
spec:
type: NodePort
ipFamilyPolicy: PreferDualStack
ports:
- port: 80
nodePort: 30096
name: http
selector:
k8s-app: nginx-app-nodeport