Planetposen frontend deployment & service

This commit is contained in:
2023-04-07 15:39:32 +02:00
parent 03876ae735
commit 084c612350
3 changed files with 69 additions and 0 deletions

View File

@@ -0,0 +1,6 @@
apiVersion: v1
kind: Namespace
metadata:
name: planet
labels:
name: planet

View File

@@ -0,0 +1,45 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
deployment.kubernetes.io/revision: "1"
labels:
app: planet-frontend
name: planet-frontend
namespace: planet
spec:
progressDeadlineSeconds: 600
replicas: 2
revisionHistoryLimit: 10
selector:
matchLabels:
app: planet-frontend
strategy:
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
type: RollingUpdate
template:
metadata:
creationTimestamp: null
labels:
app: planet-frontend
spec:
containers:
- image: ghcr.io/kevinmidboe/planetposen-frontend:latest
imagePullPolicy: IfNotPresent
name: planet-frontend
resources: {}
terminationMessagePath: /dev/termination-log
terminationMessagePolicy: File
env:
- name: STRIPE_API_KEY
value: pk_test_YiU5HewgBoClZCwHdhXhTxUn
imagePullSecrets:
- name: ghcr-login-secret
dnsPolicy: ClusterFirst
restartPolicy: Always
schedulerName: default-scheduler
securityContext: {}
terminationGracePeriodSeconds: 30

View File

@@ -0,0 +1,18 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: planet-frontend
name: planet-frontend-service
namespace: planet
spec:
ports:
- port: 80
protocol: TCP
targetPort: 3000
selector:
app: planet-frontend
sessionAffinity: None
type: ClusterIP
status:
loadBalancer: {}