feat: deploy siriusdevops.com main site to GKE
Add siriusdevops-site manifests: - Deployment + ClusterIP Service (nginx:alpine, port 80) - HTTPRoute for siriusdevops.com via external-http-gateway - Kustomization overlay wiring
This commit is contained in:
parent
36b1d637f1
commit
65e174a86d
4 changed files with 97 additions and 0 deletions
|
|
@ -13,3 +13,18 @@ spec:
|
||||||
- name: n8n-service # The name of your Kubernetes Service
|
- name: n8n-service # The name of your Kubernetes Service
|
||||||
port: 80
|
port: 80
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: gateway.networking.k8s.io/v1
|
||||||
|
kind: HTTPRoute
|
||||||
|
metadata:
|
||||||
|
name: siriusdevops-route
|
||||||
|
namespace: customer1
|
||||||
|
spec:
|
||||||
|
parentRefs:
|
||||||
|
- name: external-http-gateway
|
||||||
|
hostnames:
|
||||||
|
- "siriusdevops.com"
|
||||||
|
rules:
|
||||||
|
- backendRefs:
|
||||||
|
- name: siriusdevops-site-svc
|
||||||
|
port: 80
|
||||||
|
|
|
||||||
|
|
@ -5,3 +5,4 @@ resources:
|
||||||
- namespace.yaml
|
- namespace.yaml
|
||||||
- http-route.yaml
|
- http-route.yaml
|
||||||
- service.yaml
|
- service.yaml
|
||||||
|
- siriusdevops-site
|
||||||
|
|
|
||||||
77
apps/base/customer1/siriusdevops-site/deployment.yaml
Normal file
77
apps/base/customer1/siriusdevops-site/deployment.yaml
Normal file
|
|
@ -0,0 +1,77 @@
|
||||||
|
apiVersion: apps/v1
|
||||||
|
kind: Deployment
|
||||||
|
metadata:
|
||||||
|
name: siriusdevops-site
|
||||||
|
namespace: customer1
|
||||||
|
spec:
|
||||||
|
replicas: 1
|
||||||
|
selector:
|
||||||
|
matchLabels:
|
||||||
|
app: siriusdevops-site
|
||||||
|
template:
|
||||||
|
metadata:
|
||||||
|
labels:
|
||||||
|
app: siriusdevops-site
|
||||||
|
spec:
|
||||||
|
containers:
|
||||||
|
- name: nginx
|
||||||
|
image: ghcr.io/sirius0xdev/siriusdevops:latest
|
||||||
|
imagePullPolicy: Always
|
||||||
|
ports:
|
||||||
|
- containerPort: 80
|
||||||
|
protocol: TCP
|
||||||
|
resources:
|
||||||
|
requests:
|
||||||
|
cpu: 10m
|
||||||
|
memory: 64Mi
|
||||||
|
limits:
|
||||||
|
cpu: 50m
|
||||||
|
memory: 128Mi
|
||||||
|
|
||||||
|
startupProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 80
|
||||||
|
scheme: HTTP
|
||||||
|
initialDelaySeconds: 15
|
||||||
|
periodSeconds: 5
|
||||||
|
timeoutSeconds: 5
|
||||||
|
failureThreshold: 30
|
||||||
|
successThreshold: 1
|
||||||
|
|
||||||
|
readinessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 80
|
||||||
|
scheme: HTTP
|
||||||
|
initialDelaySeconds: 3
|
||||||
|
periodSeconds: 5
|
||||||
|
timeoutSeconds: 5
|
||||||
|
failureThreshold: 3
|
||||||
|
successThreshold: 1
|
||||||
|
|
||||||
|
livenessProbe:
|
||||||
|
httpGet:
|
||||||
|
path: /
|
||||||
|
port: 80
|
||||||
|
scheme: HTTP
|
||||||
|
initialDelaySeconds: 40
|
||||||
|
periodSeconds: 10
|
||||||
|
timeoutSeconds: 5
|
||||||
|
failureThreshold: 3
|
||||||
|
successThreshold: 1
|
||||||
|
|
||||||
|
---
|
||||||
|
apiVersion: v1
|
||||||
|
kind: Service
|
||||||
|
metadata:
|
||||||
|
name: siriusdevops-site-svc
|
||||||
|
namespace: customer1
|
||||||
|
spec:
|
||||||
|
selector:
|
||||||
|
app: siriusdevops-site
|
||||||
|
ports:
|
||||||
|
- protocol: TCP
|
||||||
|
port: 80
|
||||||
|
targetPort: 80
|
||||||
|
type: ClusterIP
|
||||||
4
apps/base/customer1/siriusdevops-site/kustomization.yaml
Normal file
4
apps/base/customer1/siriusdevops-site/kustomization.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||||
|
kind: Kustomization
|
||||||
|
resources:
|
||||||
|
- deployment.yaml
|
||||||
Loading…
Add table
Reference in a new issue