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.
56 lines
1.3 KiB
56 lines
1.3 KiB
kind: Deployment
|
|
apiVersion: apps/v1
|
|
metadata:
|
|
name: test-project
|
|
labels:
|
|
app.kubernetes.io/name: 'test-project'
|
|
app.kubernetes.io/part-of: 'single-project'
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app.kubernetes.io/name: test-project
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app.kubernetes.io/name: 'test-project'
|
|
app.kubernetes.io/part-of: 'single-project'
|
|
spec:
|
|
containers:
|
|
- name: test-project
|
|
image: test-project:1.0.0
|
|
imagePullPolicy: Always
|
|
env:
|
|
- name: DOTNET_LOGGING__CONSOLE__DISABLECOLORS
|
|
value: 'true'
|
|
- name: ASPNETCORE_URLS
|
|
value: 'http://*'
|
|
- name: PORT
|
|
value: '80'
|
|
- name: SERVICE__TEST-PROJECT__PROTOCOL
|
|
value: 'http'
|
|
- name: SERVICE__TEST-PROJECT__PORT
|
|
value: '80'
|
|
- name: SERVICE__TEST-PROJECT__HOST
|
|
value: 'test-project'
|
|
ports:
|
|
- containerPort: 80
|
|
...
|
|
---
|
|
kind: Service
|
|
apiVersion: v1
|
|
metadata:
|
|
name: test-project
|
|
labels:
|
|
app.kubernetes.io/name: 'test-project'
|
|
app.kubernetes.io/part-of: 'single-project'
|
|
spec:
|
|
selector:
|
|
app.kubernetes.io/name: test-project
|
|
type: ClusterIP
|
|
ports:
|
|
- name: http
|
|
protocol: TCP
|
|
port: 80
|
|
targetPort: 80
|
|
...
|
|
|