forked from atlassian/kubetoken
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkubetoken-deployment.yaml
48 lines (48 loc) · 1.08 KB
/
kubetoken-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
46
47
48
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: kubetoken
namespace: kube-system
spec:
replicas: 1
template:
metadata:
labels:
app: kubetoken
spec:
containers:
- image: invia-de/kubetoken:kubernetes
imagePullPolicy: Always
name: kubetoken
ports:
- containerPort: 8080
env:
- name: PORT
value: "8080"
volumeMounts:
- name: "certs"
mountPath: "/ssl/example"
- name: "config"
mountPath: "/config"
resources:
requests:
memory: "64Mi"
cpu: "10m"
limits:
memory: "128Mi"
cpu: "250m"
volumes:
- name: "certs"
secret:
secretName: "kubetoken-example"
items:
- key: "ca.pem"
path: "ca.pem"
- key: "ca-key.pem"
path: "ca-key.pem"
- name: "config"
configMap:
name: "kubetoken-config"
items:
- key: "kubetoken.json"
path: "kubetoken.json"