This repository was archived by the owner on Jun 14, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathk8s-deployment.yaml
More file actions
103 lines (103 loc) · 1.95 KB
/
k8s-deployment.yaml
File metadata and controls
103 lines (103 loc) · 1.95 KB
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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: github-app
namespace: platform-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
name: github-app-role
namespace: platform-system
rules:
- apiGroups:
- ""
resources:
- configmaps
verbs:
- get
- list
- watch
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: github-app
namespace: platform-system
labels:
app: github-app
annotations:
reload/all: "true"
spec:
replicas: 1
selector:
matchLabels:
app: github-app
template:
metadata:
labels:
app: github-app
spec:
serviceAccountName: github-app
securityContext:
runAsUser: 0
volumes:
- name: config
configMap:
name: github-app-config
containers:
- name: github-app
image: docker.io/flanksource/github-app:{{.github_app.version | default "none"}}
volumeMounts:
- name: config
mountPath: /conf
envFrom:
- secretRef:
name: github-app-secrets
args:
- serve
ports:
- containerPort: 8080
resources:
requests:
cpu: 200m
memory: 200Mi
limits:
memory: 512Mi
---
apiVersion: v1
kind: Service
metadata:
name: github-app
namespace: platform-system
labels:
app: github-app
spec:
ports:
- port: 80
targetPort: 8080
selector:
app: github-app
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: github-app
namespace: platform-system
labels:
app: github-app
annotations:
kubernetes.io/tls-acme: "true"
spec:
tls:
- hosts:
- github-app.{{.domain}}
secretName: github-app-tls
rules:
- host: github-app.{{.domain}}
http:
paths:
- backend:
serviceName: github-app
servicePort: 80