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