Commit 9eebdac9 authored by Sebastian Schrader's avatar Sebastian Schrader
Browse files

Convert pods to deployments

parent c40f802a
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: dockercoins
name: hasher
spec:
replicas: 1
selector:
matchLabels:
service: hasher
template:
metadata:
labels:
service: hasher
spec:
containers:
- name: rng
image: 10.98.88.184:5000/hasher:latest
ports:
- containerPort: 80
name: http
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: dockercoins
name: redis
spec:
replicas: 1
selector:
matchLabels:
service: redis
template:
metadata:
labels:
service: redis
spec:
containers:
- name: redis
image: redis:latest
volumeMounts:
- mountPath: /data
name: data
ports:
- containerPort: 6379
name: redis
protocol: TCP
volumes:
- name: data
persistentVolumeClaim:
claimName: data
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: dockercoins
name: rng
spec:
replicas: 1
selector:
matchLabels:
service: rng
template:
metadata:
labels:
service: rng
spec:
containers:
- name: rng
image: 10.98.88.184:5000/rng:latest
ports:
- containerPort: 80
name: http
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: dockercoins
name: webui
spec:
replicas: 1
selector:
matchLabels:
service: webui
template:
metadata:
labels:
service: webui
spec:
containers:
- name: webui
image: 10.98.88.184:5000/webui:latest
ports:
- containerPort: 80
name: http
protocol: TCP
---
apiVersion: apps/v1
kind: Deployment
metadata:
namespace: dockercoins
name: worker
spec:
replicas: 1
selector:
matchLabels:
service: worker
template:
metadata:
labels:
service: worker
spec:
containers:
- name: worker
image: 10.98.88.184:5000/worker:latest
---
apiVersion: v1
kind: Pod
metadata:
namespace: dockercoins
name: hasher
labels:
service: hasher
spec:
containers:
- name: rng
image: 10.98.88.184:5000/hasher:latest
ports:
- containerPort: 80
name: http
---
apiVersion: v1
kind: Pod
metadata:
namespace: dockercoins
name: redis
labels:
service: redis
spec:
containers:
- name: redis
image: redis:latest
volumeMounts:
- mountPath: /data
name: data
ports:
- containerPort: 6379
name: redis
protocol: TCP
volumes:
- name: data
persistentVolumeClaim:
claimName: data
---
apiVersion: v1
kind: Pod
metadata:
namespace: dockercoins
name: rng
labels:
service: rng
spec:
containers:
- name: rng
image: 10.98.88.184:5000/rng:latest
ports:
- containerPort: 80
name: http
---
apiVersion: v1
kind: Pod
metadata:
namespace: dockercoins
name: webui
labels:
service: webui
spec:
containers:
- name: webui
image: 10.98.88.184:5000/webui:latest
ports:
- containerPort: 80
name: http
protocol: TCP
---
apiVersion: v1
kind: Pod
metadata:
namespace: dockercoins
name: worker
labels:
service: worker
spec:
containers:
- name: worker
image: 10.98.88.184:5000/worker:latest
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment