generated from akeyless-community/akeyless-custom-server-kustomize-patches
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdeployment.yml
38 lines (38 loc) · 947 Bytes
/
deployment.yml
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
apiVersion: apps/v1
kind: Deployment
metadata:
name: akl-custom-server-deployment
spec:
selector:
matchLabels:
app: akl-custom-server
template:
metadata:
labels:
app: akl-custom-server
spec:
containers:
- name: akl-custom-server
image: akeyless/custom-server
ports:
- containerPort: 2608
volumeMounts:
- name: script-volume
mountPath: /custom_logic.sh
subPath: custom_logic.sh
- name: secret-volume
mountPath: /etc/secrets
readOnly: true
env:
- name: GW_ACCESS_ID
valueFrom:
secretKeyRef:
name: akl-gateway-access-id-secret
key: GW_ACCESS_ID
volumes:
- name: script-volume
configMap:
name: akl-custom-script-configmap
- name: secret-volume
secret:
secretName: akl-gateway-access-id-secret