-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeployment.yaml
More file actions
65 lines (62 loc) · 1.72 KB
/
deployment.yaml
File metadata and controls
65 lines (62 loc) · 1.72 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
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kube-bootstrap-token-manager
namespace: kube-system
labels:
app: kube-bootstrap-token-manager
spec:
replicas: 1
selector:
matchLabels:
app: kube-bootstrap-token-manager
template:
metadata:
labels:
app: kube-bootstrap-token-manager
annotations:
prometheus.io/scrape: "true"
prometheus.io/path: /metrics
prometheus.io/port: "8080"
spec:
serviceAccountName: kube-bootstrap-token-manager
containers:
- name: kube-bootstrap-token-manager
image: webdevops/kube-bootstrap-token-manager:latest
imagePullPolicy: Always
env:
- name: CLOUD_PROVIDER
value: "azure"
###########################
# CloudProvider: Azure
- name: AZURE_ENVIRONMENT
value: "AzurePublicCloud"
- name: AZURE_KEYVAULT_URL
value: "https://example-vault.vault.azure.net/"
- name: AZURE_KEYVAULT_SECRET_NAME
value: "bootstrap-token"
securityContext:
readOnlyRootFilesystem: true
runAsNonRoot: true
capabilities:
drop: ['ALL']
ports:
- containerPort: 8080
name: http-metrics
protocol: TCP
resources:
limits:
cpu: 100m
memory: 100Mi
requests:
cpu: 1m
memory: 100Mi
volumeMounts:
- name: config
mountPath: /config
readOnly: true
volumes:
- name: config
secret:
secretName: kube-bootstrap-token-manager