-
Notifications
You must be signed in to change notification settings - Fork 0
/
kapplier.yaml
74 lines (74 loc) · 1.72 KB
/
kapplier.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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kapplier-admin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: default
namespace: kapplier
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kapplier
namespace: kapplier
spec:
selector:
matchLabels:
app: kapplier
template:
metadata:
annotations:
prometheus.io/path: /metrics
prometheus.io/port: "9100"
prometheus.io/scrape: "true"
labels:
app: kapplier
spec:
containers:
- args:
- --path=/repo/kapplier.git
- --subpath=deploy
image: ghcr.io/jrcichra/kapplier
name: kapplier
resources:
limits:
cpu: 300m
memory: 256Mi
requests:
cpu: 10m
memory: 8Mi
volumeMounts:
- mountPath: /repo
name: repo
readOnly: true
- args:
- --webhook-url=http://127.0.0.1:9100/webhook
env:
- name: GITSYNC_REPO
value: https://github.com/jrcichra/kapplier.git
- name: GITSYNC_ROOT
value: /repo
image: registry.k8s.io/git-sync/git-sync:v4.1.0
name: git-sync
resources:
limits:
cpu: 100m
memory: 128Mi
requests:
cpu: 10m
memory: 8Mi
volumeMounts:
- mountPath: /repo
name: repo
securityContext:
runAsNonRoot: true
runAsUser: 65534
volumes:
- emptyDir: {}
name: repo