netflux-kubernetes/deploy/base/deploy-solar-toolkit-gatewa...

58 lines
1.5 KiB
YAML
Raw Normal View History

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"
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
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
securityContext:
readOnlyRootFilesystem: true