-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yaml
45 lines (44 loc) · 1.27 KB
/
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: k8s-node-tagger
spec:
# NOTE: we could do replicas: 2 here. If so, add the '-enable-leader-election' flag
replicas: 1
selector:
matchLabels:
app: k8s-node-tagger
template:
metadata:
labels:
app: k8s-node-tagger
spec:
serviceAccountName: k8s-node-tagger
containers:
- name: k8s-node-tagger
image: ghcr.io/planetscale/k8s-node-tagger:v0.0.15@sha256:7e5074b10cc113afaf6ea17465ad8de2b9b08acf24cc55e98f4eb5aafe4e1982
imagePullPolicy: IfNotPresent
args:
- -cloud=aws
# - -cloud=gcp
- -labels=database-branch-id,psdb.co/shard,psdb.co/cluster,psdb.co/keyspace,psdb.co/component,psdb.co/size
- -annotations=foo.bar/baz,foo.bar/qux
- -json
ports:
- name: http
containerPort: 8080
protocol: TCP
- name: metrics
containerPort: 8081
protocol: TCP
livenessProbe:
httpGet:
path: /healthz
port: http
readinessProbe:
httpGet:
path: /healthz
port: http
resources:
requests:
memory: 64Mi