-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeployment.yaml
76 lines (75 loc) · 1.96 KB
/
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
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: azure-blob-proxy
namespace: default
labels:
app.kubernetes.io/name: azure-blob-proxy
spec:
replicas: 1
selector:
matchLabels:
app.kubernetes.io/name: azure-blob-proxy
template:
metadata:
annotations:
azure.workload.identity/skip-containers: nginx
kubectl.kubernetes.io/default-container: proxy
labels:
azure.workload.identity/use: "true"
app.kubernetes.io/name: azure-blob-proxy
spec:
serviceAccountName: azure-blob-proxy
enableServiceLinks: false
containers:
- name: proxy
image: neondatabase/azure-blob-proxy:latest
env:
- name: AZURE_STORAGE_ACCOUNT
value: azureblobproxydemo
- name: AZURE_STORAGE_CONTAINER
value: azure-blob-proxy-demo
resources:
limits:
cpu: 1000m
memory: 1Gi
requests:
cpu: 100m
memory: 128Mi
- name: nginx
image: nginx:1.27-alpine
imagePullPolicy: IfNotPresent
ports:
- name: http
containerPort: 80
readinessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 1
periodSeconds: 5
livenessProbe:
httpGet:
path: /healthz
port: http
initialDelaySeconds: 1
periodSeconds: 30
resources:
limits:
cpu: 1000m
memory: 128Mi
requests:
cpu: 100m
memory: 128Mi
volumeMounts:
- name: azure-blob-proxy-nginx-config
mountPath: /etc/nginx/conf.d/default.conf
subPath: default.conf
readOnly: true
volumes:
- name: azure-blob-proxy-nginx-config
configMap:
name: azure-blob-proxy-nginx-config
items:
- key: default.conf
path: default.conf