2022-07-13 20:33:45 +00:00
|
|
|
apiVersion: apps/v1
|
|
|
|
kind: Deployment
|
|
|
|
metadata:
|
|
|
|
name: solar-toolkit-gateway
|
|
|
|
labels:
|
|
|
|
app: solar-toolkit-gateway
|
|
|
|
component: web
|
|
|
|
app.kubernetes.io/name: solar-toolkit-gateway
|
|
|
|
app.kubernetes.io/instance: solar-toolkit-gateway
|
2023-09-10 22:18:13 +00:00
|
|
|
annotations:
|
|
|
|
ignore-check.kube-linter.io/run-as-non-root: "Not yet implemented"
|
2022-07-13 20:33:45 +00:00
|
|
|
spec:
|
|
|
|
selector:
|
|
|
|
matchLabels:
|
|
|
|
app: solar-toolkit-gateway
|
|
|
|
component: web
|
|
|
|
template:
|
|
|
|
metadata:
|
|
|
|
labels:
|
|
|
|
app: solar-toolkit-gateway
|
|
|
|
component: web
|
|
|
|
app.kubernetes.io/name: solar-toolkit-gateway
|
|
|
|
app.kubernetes.io/instance: solar-toolkit-gateway
|
|
|
|
spec:
|
|
|
|
containers:
|
2023-10-08 17:40:14 +00:00
|
|
|
- image: netfluxio/solar-toolkit:latest
|
2022-07-13 20:33:45 +00:00
|
|
|
imagePullPolicy: Always
|
|
|
|
name: solar-toolkit
|
|
|
|
ports:
|
|
|
|
- name: http
|
|
|
|
protocol: TCP
|
|
|
|
containerPort: 8888
|
|
|
|
env:
|
|
|
|
- name: DATABASE_URL
|
|
|
|
valueFrom:
|
|
|
|
secretKeyRef:
|
|
|
|
name: solar-toolkit-gateway
|
|
|
|
key: database-url
|
|
|
|
resources:
|
|
|
|
requests:
|
|
|
|
memory: "16Mi"
|
|
|
|
cpu: "50m"
|
|
|
|
limits:
|
|
|
|
memory: "64Mi"
|
|
|
|
cpu: "100m"
|
|
|
|
livenessProbe:
|
|
|
|
failureThreshold: 10
|
|
|
|
httpGet:
|
|
|
|
path: /healthz
|
|
|
|
port: 8888
|
|
|
|
scheme: HTTP
|
|
|
|
initialDelaySeconds: 10
|
|
|
|
periodSeconds: 10
|
|
|
|
successThreshold: 1
|
|
|
|
timeoutSeconds: 3
|
2023-09-10 21:54:06 +00:00
|
|
|
securityContext:
|
|
|
|
readOnlyRootFilesystem: true
|