-
Notifications
You must be signed in to change notification settings - Fork 45
Expand file tree
/
Copy pathtemplateDeployment.yaml
More file actions
75 lines (75 loc) · 2.17 KB
/
templateDeployment.yaml
File metadata and controls
75 lines (75 loc) · 2.17 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
apiVersion: apps/v1
kind: Deployment
metadata:
name: placeholder-depname
namespace: placeholder-namespace
ownerReferences:
- apiVersion: theia.cloud/v1beta9
kind: AppDefinition
name: placeholder
uid: placeholder
spec:
replicas: 1
selector:
matchLabels:
app: placeholder-app
template:
metadata:
labels:
app: placeholder-app
spec:
automountServiceAccountToken: false
containers:
- name: oauth2-proxy
image: quay.io/oauth2-proxy/oauth2-proxy:v7.4.0
imagePullPolicy: Always
args:
- --config=/etc/oauth2-proxy.cfg
- --authenticated-emails-file=/emails/authenticated-emails-list
- --gcp-healthchecks
- --reverse-proxy
- --skip-auth-route=/monitor/*
ports:
- containerPort: 5000
name: web
volumeMounts:
- name: oauth2-proxy-config
mountPath: /etc/oauth2-proxy.cfg
subPath: oauth2-proxy.cfg
- name: oauth2-templates
mountPath: /templates
- name: oauth2-emails
mountPath: /emails
- name: placeholder-definitionname
image: placeholder-image
ports:
- containerPort: placeholder-port
resources:
limits:
cpu: placeholder-cpu-limits
memory: placeholder-memory-limits
requests:
cpu: placeholder-cpu-requests
memory: placeholder-memory-requests
securityContext:
runAsUser: 0
runAsGroup: 0
- name: nginx-hello-world
image: nginxdemos/hello
securityContext:
runAsUser: 0
runAsGroup: 0
securityContext:
runAsUser: placeholder-uid
runAsGroup: placeholder-uid
fsGroup: placeholder-uid
volumes:
- name: oauth2-proxy-config
configMap:
name: placeholder-configname
- name: oauth2-templates
configMap:
name: oauth2-templates
- name: oauth2-emails
configMap:
name: placeholder-emailsconfigname