46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
name: example-nginx-deployment
|
|
namespace: nocr
|
|
labels:
|
|
app: nginx
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: nginx
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: nginx
|
|
spec:
|
|
containers:
|
|
- name: nginx
|
|
image: nginx:1.14.2
|
|
ports:
|
|
- containerPort: 80
|
|
env:
|
|
- name: ASPNETCORE_rmqc_host
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: rmqc-default-user
|
|
key: host
|
|
- name: ASPNETCORE_rmqc_username
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: rmqc-default-user
|
|
key: username
|
|
- name: ASPNETCORE_rmqc_password
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: rmqc-default-user
|
|
key: password
|
|
- name: ASPNETCORE_rmqc_port
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: rmqc-default-user
|
|
key: port
|
|
- name: ASPNETCORE__RebusRabbitMqOptions__ConnectionString
|
|
value: "amqp://$(ASPNETCORE_rmqc_username):$(ASPNETCORE_rmqc_password)@$(ASPNETCORE_rmqc_host):$(ASPNETCORE_rmqc_port)/"
|