You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
585 B
22 lines
585 B
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: random-demo-deployment
|
|
namespace: default
|
|
spec:
|
|
selector:
|
|
matchLabels:
|
|
app: random-demo
|
|
replicas: 1
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: random-demo
|
|
spec:
|
|
containers:
|
|
- name: random-demo-conainer
|
|
image: danionescu/docker-flask-mongodb-example-python-default:latest
|
|
command: ["python", "/root/flask-mongodb-example/random_demo.py", "mongodb-service.default.svc.cluster.local"]
|
|
imagePullPolicy: Always
|
|
ports:
|
|
- containerPort: 5000
|