-
Notifications
You must be signed in to change notification settings - Fork 0
/
deployment-v2.yaml
45 lines (45 loc) · 1006 Bytes
/
deployment-v2.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
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: sample-app-sa-v2
namespace: dev
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: sample-app-v2
labels:
app: sample-app-v2
annotations:
argocd.argoproj.io/sync-options: SkipDryRunOnMissingResource=true
argocd.argoproj.io/sync-wave: "2"
spec:
replicas: 1
selector:
matchLabels:
app: sample-app
template:
metadata:
labels:
app: sample-app
version: v2
annotations:
sidecar.istio.io/inject: "true"
spec:
serviceAccountName: sample-app-sa-v2
containers:
- name: sample-app
image: quay.io/raphael_tholl/sample-app:latest
imagePullPolicy: Always
ports:
- containerPort: 8080
env:
- name: VERSION
value: v2
livenessProbe:
httpGet:
path: /healthz
port: 8080
initialDelaySeconds: 3
periodSeconds: 10