Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: <your-name>-deployment
- spec:
- selector:
- matchLabels:
- app: <your-name>-app
- replicas: 1 # tells deployment to run 2 pods matching the template
- template:
- metadata:
- labels:
- app: <your-name>-app
- spec:
- containers:
- - name: <your-name>-container
- image: <docker-hub-image>/image:tag> #ex : asyed755/ril:v1 - it should be the same as on docker hub
- ports:
- - containerPort: 80
- volumes:
- - name: <your-name>
- persistentVolumeClaim:
- claimName: <your-name>-persistentvolumeclaim
Add Comment
Please, Sign In to add comment