Frontend deployment

This commit is contained in:
2024-04-11 18:00:03 +03:00
parent 8786b8c1d2
commit 84cd414759
5 changed files with 48 additions and 2 deletions

View File

@@ -15,7 +15,7 @@ type: application
# This is the chart version. This version number should be incremented each time you make changes # This is the chart version. This version number should be incremented each time you make changes
# to the chart and its templates, including the app version. # to the chart and its templates, including the app version.
# Versions are expected to follow Semantic Versioning (https://semver.org/) # Versions are expected to follow Semantic Versioning (https://semver.org/)
version: 0.1.0 version: 0.1.1
# This is the version number of the application being deployed. This version number should be # This is the version number of the application being deployed. This version number should be
# incremented each time you make changes to the application. Versions are not expected to # incremented each time you make changes to the application. Versions are not expected to

View File

@@ -5,7 +5,7 @@ metadata:
labels: labels:
app: {{ .Release.Name }}-backend app: {{ .Release.Name }}-backend
spec: spec:
replicas: 1 replicas: 3
selector: selector:
matchLabels: matchLabels:
app: {{ .Release.Name }}-backend app: {{ .Release.Name }}-backend

View File

@@ -0,0 +1,25 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Release.Name }}-frontend-deployment
labels:
app: {{ .Release.Name }}-frontend
spec:
replicas: 1
selector:
matchLabels:
app: {{ .Release.Name }}-frontend
template:
metadata:
labels:
app: {{ .Release.Name }}-frontend
spec:
containers:
- name: {{ .Release.Name }}-frontend
image: ghcr.io/nullptroma/liquid-frontend
imagePullPolicy: Always
ports:
- containerPort: 8000
imagePullSecrets:
- name: github-registry

View File

@@ -0,0 +1,11 @@
apiVersion: v1
kind: Service
metadata:
name: {{ .Release.Name }}-frontend-service
spec:
selector:
app: {{ .Release.Name }}-frontend
ports:
- protocol: TCP
port: 80
targetPort: 8000

View File

@@ -14,3 +14,13 @@ spec:
name: {{ .Release.Name }}-backend-service name: {{ .Release.Name }}-backend-service
port: port:
number: 80 number: 80
- host: nullptr.top
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: {{ .Release.Name }}-frontend-service
port:
number: 80