-
Notifications
You must be signed in to change notification settings - Fork 17
/
deployment.yaml
50 lines (50 loc) · 1015 Bytes
/
deployment.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
apiVersion: "v1"
kind: Service
metadata:
name: sidecarsvc
labels:
name: sidecarsvc
app: sidecar
spec:
selector:
name: sidecardemoapibackend
app: sidecar
type: LoadBalancer
ports:
- port: 80
name: http
targetPort: 8080
protocol: TCP
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: sidecardemoapibackend
spec:
replicas: 1
minReadySeconds: 5
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 1
template:
metadata:
labels:
name: sidecardemoapibackend
app: sidecar
spec:
containers:
- name: sidecarproxy
image: csaocpger/aspnetsidecar:1.0
env:
- name: DEMOAPI_PORT
value: "80"
- name: PROXY_PORT
value: "8080"
ports:
- containerPort: 8080
name: http
protocol: TCP
- name: demoapi
image: csaocpger/aspnetdemoapi:1.0