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.
61 lines
1.5 KiB
61 lines
1.5 KiB
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: frontend
|
|
labels:
|
|
app.kubernetes.io/name: 'frontend'
|
|
app.kubernetes.io/part-of: 'generate-connectionstring-dependency'
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: frontend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: 'frontend'
|
|
app.kubernetes.io/part-of: 'generate-connectionstring-dependency'
|
|
spec:
|
|
containers:
|
|
- name: frontend
|
|
image: frontend:1.0.0
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: DOTNET_LOGGING__CONSOLE__DISABLECOLORS
|
|
value: 'true'
|
|
- name: ASPNETCORE_URLS
|
|
value: 'http://*'
|
|
- name: PORT
|
|
value: '80'
|
|
- name: SERVICE__FRONTEND__PROTOCOL
|
|
value: 'http'
|
|
- name: SERVICE__FRONTEND__PORT
|
|
value: '80'
|
|
- name: SERVICE__FRONTEND__HOST
|
|
value: 'frontend'
|
|
- name: CONNECTIONSTRINGS__DEPENDENCY
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: 'binding-production-dependency-secret'
|
|
key: 'connectionstring'
|
|
ports:
|
|
- containerPort: 80
|
|
...
|
|
---
|
|
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: frontend
|
|
labels:
|
|
app.kubernetes.io/name: 'frontend'
|
|
app.kubernetes.io/part-of: 'generate-connectionstring-dependency'
|
|
spec:
|
|
selector:
|
|
app.kubernetes.io/name: frontend
|
|
type: ClusterIP
|
|
ports:
|
|
- name: http
|
|
protocol: TCP
|
|
port: 80
|
|
targetPort: 80
|
|
...
|
|
|