mirror of
https://github.com/jpetazzo/container.training.git
synced 2026-02-14 17:49:59 +00:00
126 lines
1.7 KiB
YAML
126 lines
1.7 KiB
YAML
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: hasher
|
|
name: hasher
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: hasher
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: hasher
|
|
spec:
|
|
containers:
|
|
- image: dockercoins/hasher:v0.1
|
|
name: hasher
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
app: hasher
|
|
name: hasher
|
|
spec:
|
|
ports:
|
|
- port: 80
|
|
protocol: TCP
|
|
targetPort: 80
|
|
selector:
|
|
app: hasher
|
|
type: ClusterIP
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: rng
|
|
name: rng
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: rng
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: rng
|
|
spec:
|
|
containers:
|
|
- image: dockercoins/rng:v0.1
|
|
name: rng
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
app: rng
|
|
name: rng
|
|
spec:
|
|
ports:
|
|
- port: 80
|
|
protocol: TCP
|
|
targetPort: 80
|
|
selector:
|
|
app: rng
|
|
type: ClusterIP
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: webui
|
|
name: webui
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: webui
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: webui
|
|
spec:
|
|
containers:
|
|
- image: dockercoins/webui:v0.1
|
|
name: webui
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
labels:
|
|
app: webui
|
|
name: webui
|
|
spec:
|
|
ports:
|
|
- port: 80
|
|
protocol: TCP
|
|
targetPort: 80
|
|
selector:
|
|
app: webui
|
|
type: NodePort
|
|
---
|
|
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
labels:
|
|
app: worker
|
|
name: worker
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: worker
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: worker
|
|
spec:
|
|
containers:
|
|
- image: dockercoins/worker:v0.1
|
|
name: worker
|