12345678910111213141516171819202122232425262728293031323334353637 |
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: nc
- spec:
- replicas: 1
- selector:
- matchLabels:
- name: nc
- template:
- metadata:
- labels:
- name: nc
- spec:
- containers:
- - name: nc
- image: nginx
- imagePullPolicy: Always
- ports:
- - containerPort: 80
- name: tcp
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: nc
- spec:
- type: ClusterIP
- ipFamilyPolicy: PreferDualStack
- selector:
- name: nc
- ports:
- - protocol: TCP
- port: 8080
- targetPort: 80
- name: tcp
|