k3s/tests/docker/resources/dualstack_clusterip.yaml
Derek Nola 0d39c86b5c Move from ranchertest to mirrored-busybox
Signed-off-by: Derek Nola <derek.nola@suse.com>
2025-12-08 09:09:40 -08:00

37 lines
780 B
YAML

apiVersion: apps/v1
kind: Deployment
metadata:
name: ds-clusterip-pod
spec:
selector:
matchLabels:
k8s-app: nginx-app-clusterip
replicas: 2
template:
metadata:
labels:
k8s-app: nginx-app-clusterip
spec:
containers:
- name: nginx
image: rancher/mirrored-library-busybox:1.37.0
args: ['sh', '-c', 'echo Welcome to nginx! > index.html; hostname > name.html; httpd -vvf']
ports:
- containerPort: 80
---
apiVersion: v1
kind: Service
metadata:
labels:
k8s-app: nginx-app-clusterip
name: ds-clusterip-svc
namespace: default
spec:
type: ClusterIP
ipFamilyPolicy: PreferDualStack
ports:
- protocol: TCP
port: 80
targetPort: 80
selector:
k8s-app: nginx-app-clusterip