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.
129 lines
2.9 KiB
129 lines
2.9 KiB
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: results
|
|
labels:
|
|
app.kubernetes.io/name: 'results'
|
|
app.kubernetes.io/part-of: 'VotingSample'
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: results
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: 'results'
|
|
app.kubernetes.io/part-of: 'VotingSample'
|
|
spec:
|
|
containers:
|
|
- name: results
|
|
image: results:1.0.0
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: DOTNET_LOGGING__CONSOLE__DISABLECOLORS
|
|
value: 'true'
|
|
- name: ASPNETCORE_URLS
|
|
value: 'http://*'
|
|
- name: PORT
|
|
value: '80'
|
|
- name: SERVICE__RESULTS__PROTOCOL
|
|
value: 'http'
|
|
- name: SERVICE__RESULTS__PORT
|
|
value: '80'
|
|
- name: SERVICE__RESULTS__HOST
|
|
value: 'results'
|
|
- name: SERVICE__WORKER__PROTOCOL
|
|
value: 'http'
|
|
- name: SERVICE__WORKER__PORT
|
|
value: '80'
|
|
- name: SERVICE__WORKER__HOST
|
|
value: 'worker'
|
|
ports:
|
|
- containerPort: 80
|
|
...
|
|
---
|
|
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: results
|
|
labels:
|
|
app.kubernetes.io/name: 'results'
|
|
app.kubernetes.io/part-of: 'VotingSample'
|
|
spec:
|
|
selector:
|
|
app.kubernetes.io/name: results
|
|
type: ClusterIP
|
|
ports:
|
|
- name: http
|
|
protocol: TCP
|
|
port: 80
|
|
targetPort: 80
|
|
...
|
|
---
|
|
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: worker
|
|
labels:
|
|
app.kubernetes.io/name: 'worker'
|
|
app.kubernetes.io/part-of: 'VotingSample'
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: worker
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: 'worker'
|
|
app.kubernetes.io/part-of: 'VotingSample'
|
|
spec:
|
|
containers:
|
|
- name: worker
|
|
image: worker:1.0.0
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: DOTNET_LOGGING__CONSOLE__DISABLECOLORS
|
|
value: 'true'
|
|
- name: ASPNETCORE_URLS
|
|
value: 'http://*'
|
|
- name: PORT
|
|
value: '80'
|
|
- name: SERVICE__WORKER__PROTOCOL
|
|
value: 'http'
|
|
- name: SERVICE__WORKER__PORT
|
|
value: '80'
|
|
- name: SERVICE__WORKER__HOST
|
|
value: 'worker'
|
|
- name: CONNECTIONSTRINGS__REDIS
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: 'binding-production-redis-secret'
|
|
key: 'connectionstring'
|
|
- name: CONNECTIONSTRINGS__POSTGRES
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: 'binding-production-postgres-secret'
|
|
key: 'connectionstring'
|
|
ports:
|
|
- containerPort: 80
|
|
...
|
|
---
|
|
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: worker
|
|
labels:
|
|
app.kubernetes.io/name: 'worker'
|
|
app.kubernetes.io/part-of: 'VotingSample'
|
|
spec:
|
|
selector:
|
|
app.kubernetes.io/name: worker
|
|
type: ClusterIP
|
|
ports:
|
|
- name: http
|
|
protocol: TCP
|
|
port: 80
|
|
targetPort: 80
|
|
...
|
|
|