* Initial Work of Better Deployment Script * Checks if .secret is Present on Test Setup * Implements Custom Routing per Profile * Rewriting Setup Tools - Adds Postgres and Redis * Rewriting Setup Tools - Adds Frontend * Rewriting Setup Tools - Adds Backend * Rewriting Setup Tools - Adds CertManager * Rewriting Setup Tools - Adds Frontend * Adds Nginx-Ingress and Fixes Staging Environment * Updates CertManager and Nginx-Ingress * Implements New Setup Process Initial Adjustments to CI/CD Adjusts CI/CD test * Adds CI/CD for Prod Environment
51 lines
1.3 KiB
YAML
51 lines
1.3 KiB
YAML
apiVersion: apps/v1
|
|
kind: Deployment
|
|
metadata:
|
|
namespace: portfolio
|
|
name: frontend-deployment
|
|
labels:
|
|
app: frontend
|
|
spec:
|
|
replicas: 1
|
|
selector:
|
|
matchLabels:
|
|
app: frontend
|
|
template:
|
|
metadata:
|
|
labels:
|
|
app: frontend
|
|
spec:
|
|
containers:
|
|
- name: frontend
|
|
image: yoshiunfriendly/frontend-hideyoshi.com:latest
|
|
imagePullPolicy: "Always"
|
|
ports:
|
|
- containerPort: 5000
|
|
env:
|
|
- name: PORT
|
|
value: "5000"
|
|
- name: BACKEND_URL
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: frontend-secret
|
|
key: backend_url
|
|
- name: BACKEND_OAUTH_URL
|
|
valueFrom:
|
|
secretKeyRef:
|
|
name: frontend-secret
|
|
key: backend_oauth_url
|
|
|
|
---
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
namespace: portfolio
|
|
name: frontend-service
|
|
spec:
|
|
selector:
|
|
app: frontend
|
|
ports:
|
|
- port: 5000
|
|
protocol: TCP
|
|
targetPort: 5000
|
|
type: ClusterIP |