-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdeployment-example.yaml
More file actions
61 lines (61 loc) · 1.74 KB
/
Copy pathdeployment-example.yaml
File metadata and controls
61 lines (61 loc) · 1.74 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
apiVersion: apps/v1
kind: Deployment
metadata:
name: fortigate-netbox
namespace: example
labels:
app.kubernetes.io/instance: fortigate-netbox
app.kubernetes.io/name: fortigate-netbox
app.kubernetes.io/version: v1.0.1
spec:
selector:
matchLabels:
app.kubernetes.io/instance: fortigate-netbox
app.kubernetes.io/name: fortigate-netbox
app: fortigate-netbox
replicas: 1
template:
metadata:
labels:
app.kubernetes.io/instance: fortigate-netbox
app.kubernetes.io/name: fortigate-netbox
app.kubernetes.io/version: v1.0.1
app: fortigate-netbox
spec:
volumes:
- name: env-vars-secrets
secret:
secretName: fortigate-netbox-env-secrets
items:
- key: .env-secrets
path: .env-secrets
- name: env-vars-config
configMap:
name: fortigate-netbox-env-config
items:
- key: .env-config
path: .env-config
- name: cron
configMap:
name: fortigate-netbox-cron
items:
- key: cron
path: root
containers:
- name: fortigate-netbox
image: untestedengineer/fortigate-netbox:v1.0.1-alpine
imagePullPolicy: Always
resources:
limits:
memory: "256Mi"
cpu: "125m"
volumeMounts:
- name: env-vars-secrets
mountPath: /opt/fortigate-netbox/env_vars/.env-secrets
subPath: .env-secrets
- name: env-vars-config
mountPath: /opt/fortigate-netbox/env_vars/.env-config
subPath: .env-config
- name: cron
mountPath: /etc/crontabs/root
subPath: root