qubed/chart/templates/stac-server-deployment.yaml
2025-04-15 14:02:01 +00:00

44 lines
1.1 KiB
YAML

# templates/stac-server-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: stac-server
spec:
replicas: {{ .Values.stacServer.replicas }}
selector:
matchLabels:
app: stac-server
template:
metadata:
labels:
app: stac-server
spec:
containers:
- name: stac-server
image: "{{ .Values.stacServer.image.repository }}:{{ .Values.stacServer.image.tag }}"
imagePullPolicy: {{ .Values.stacServer.image.pullPolicy }}
env:
- name: API_KEY
valueFrom:
secretKeyRef:
name: api-key
key: API_KEY
- name: API_URL
value: "https://{{ .Values.ingress.hostname }}/api/v1/"
ports:
- containerPort: {{ .Values.stacServer.servicePort }}
---
apiVersion: v1
kind: Service
metadata:
name: stac-server
spec:
selector:
app: stac-server
ports:
- protocol: TCP
port: {{ .Values.stacServer.servicePort }}
targetPort: {{ .Values.stacServer.servicePort }}
type: ClusterIP