Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: python-app-<your-name>
- spec:
- selector:
- matchLabels:
- run: python-app-<your-name>
- replicas: 2
- template:
- metadata:
- labels:
- run: python-app-<your-name>
- spec:
- containers:
- - name: python-app-<your-name>
- image: lovescloud/docker-python:latest
- ports:
- - name: port4000
- containerPort: 4000
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: python-app-<your-name>
- labels:
- run: python-app-<your-name>
- spec:
- type: NodePort
- ports:
- - name: port4000
- port: 4000
- protocol: TCP
- selector:
- run: python-app-<your-name>
Add Comment
Please, Sign In to add comment