diff options
author | Santo Cariotti <santo@dcariotti.me> | 2025-01-17 11:41:55 +0100 |
---|---|---|
committer | Santo Cariotti <santo@dcariotti.me> | 2025-01-17 11:41:55 +0100 |
commit | 6cfd0194f65d7730fedcf4ac100f0c3aa28ad06d (patch) | |
tree | 51ef1435683788985a83f1bef00e35532735d045 /yaml/frontend.yaml | |
parent | a8a948998cd12c5bfbb24a1fcf123901c70cb1c0 (diff) |
Use only three files
Diffstat (limited to 'yaml/frontend.yaml')
-rw-r--r-- | yaml/frontend.yaml | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/yaml/frontend.yaml b/yaml/frontend.yaml new file mode 100644 index 0000000..94766a8 --- /dev/null +++ b/yaml/frontend.yaml @@ -0,0 +1,47 @@ +apiVersion: v1 +kind: ConfigMap +metadata: + name: cas-frontend-config +data: + VITE_API_URL: ${VITE_API_URL} +--- +apiVersion: apps/v1 +kind: Deployment +metadata: + name: cas-frontend-deployment + labels: + app: cas-frontend-app +spec: + selector: + matchLabels: + app: cas-frontend-app + template: + metadata: + labels: + app: cas-frontend-app + spec: + containers: + - name: frontend + image: ghcr.io/cas-4/frontend:latest + imagePullPolicy: Always + ports: + - containerPort: 80 + env: + - name: VITE_API_URL + valueFrom: + configMapKeyRef: + name: cas-frontend-config + key: VITE_API_URL + restartPolicy: Always +--- +apiVersion: v1 +kind: Service +metadata: + name: cas-frontend-service +spec: + ports: + - port: 80 + targetPort: 80 + selector: + app: cas-frontend-app + type: ClusterIP |