Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: web
- spec:
- type: NodePort
- selector:
- web: ok
- ports:
- - port: 80
- targetPort: 80
- ---
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- labels:
- app: nginx
- name: nginx
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: nginx
- template:
- metadata:
- labels:
- app: nginx
- web: ok
- spec:
- containers:
- - image: nginx
- name: nginx
- ports:
- - containerPort: 80
- ---
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- labels:
- app: httpd
- name: httpd
- spec:
- replicas: 1
- selector:
- matchLabels:
- app: httpd
- template:
- metadata:
- labels:
- app: httpd
- web: ok
- spec:
- containers:
- - image: httpd
- name: httpd
- ports:
- - containerPort: 80
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement