-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapi-deployment.yaml
More file actions
103 lines (103 loc) · 3.04 KB
/
api-deployment.yaml
File metadata and controls
103 lines (103 loc) · 3.04 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
kompose.cmd: kompose convert -f netpicker.yml
kompose.version: 1.34.0 (HEAD)
service.netpicker.io: api
labels:
io.kompose.service: api
name: api
spec:
replicas: 1
selector:
matchLabels:
io.kompose.service: api
strategy:
type: Recreate
template:
metadata:
annotations:
kompose.cmd: kompose convert -f netpicker.yml
kompose.version: 1.34.0 (HEAD)
service.netpicker.io: api
labels:
io.kompose.service: api
spec:
containers:
- env:
- name: ALLOWED_ORIGINS
value: '["*"]'
- name: AUTH0_AUDIENCE
value: n/a
- name: AUTH0_CLIENT_ID
value: n/a
- name: AUTH0_CLIENT_SECRET
value: n/a
- name: AUTH0_TENANT
value: n/a
- name: AUTH_BACKEND
value: netyce_alchemy
- name: BEAT_DB_URI
value: postgresql+psycopg2://netpicker:netpicker@db/netpicker
- name: CELERY_BROKER_URL
value: redis://redis
- name: CELERY_RESULT_BACKEND
value: redis://redis
- name: CLI_PROXY_HOST
value: agent
- name: DB_URI
value: postgresql+asyncpg://netpicker:netpicker@db/netpicker
- name: GIT_REPO_MANAGER
value: '["gitd",9419]'
- name: GIT_SERVER
value: git://gitd
- name: INIT_PASSWORD
value: "12345678"
- name: INIT_TENANT
value: default
- name: INIT_USER
value: admin@admin.com
- name: JWT_ALGORITHM
value: HS256
- name: JWT_AUDIENCE
value: netpicker
- name: JWT_SECRET
value: ew9023cnkljfcnsdlkfsfdhs
- name: NETBOX_API
value: https://netbox-endpoint/
- name: NETBOX_TOKEN
value: netbox_token_here
- name: PERSISTENT_VOLUME_PATH
value: /data/policy-repository
- name: REDIS_URL
value: redis://redis
- name: SLURPIT_APIKEY
value: slurpit_apikey_here
- name: SLURPIT_URL
value: https://slurpit-endpoint/
- name: UVICORN_ROOT_PATH
value: /
- name: WORKDIR_VOLUME_PATH
value: /data/policy-workdir
image: netpicker/api
livenessProbe:
exec:
command:
- curl
- -f
- http://localhost:8000/api/v1/status
initialDelaySeconds: 15
periodSeconds: 5
name: api
ports:
- containerPort: 8000
protocol: TCP
volumeMounts:
- mountPath: /data
name: policy-data
restartPolicy: Always
volumes:
- name: policy-data
persistentVolumeClaim:
claimName: policy-data