redaction (#1)
Add the redacted source file for demo purposes Reviewed-on: https://source.michaeldileo.org/michael_dileo/Keybard-Vagabond-Demo/pulls/1 Co-authored-by: Michael DiLeo <michael_dileo@proton.me> Co-committed-by: Michael DiLeo <michael_dileo@proton.me>
This commit was merged in pull request #1.
This commit is contained in:
58
manifests/applications/blorp/deployment.yaml
Normal file
58
manifests/applications/blorp/deployment.yaml
Normal file
@@ -0,0 +1,58 @@
|
||||
---
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: blorp
|
||||
namespace: blorp-application
|
||||
labels:
|
||||
app.kubernetes.io/name: blorp
|
||||
app.kubernetes.io/component: web
|
||||
spec:
|
||||
replicas: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
app.kubernetes.io/name: blorp
|
||||
app.kubernetes.io/component: web
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
app.kubernetes.io/name: blorp
|
||||
app.kubernetes.io/component: web
|
||||
spec:
|
||||
containers:
|
||||
- name: blorp
|
||||
image: ghcr.io/blorp-labs/blorp:latest
|
||||
imagePullPolicy: Always
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: http
|
||||
env:
|
||||
- name: REACT_APP_NAME
|
||||
value: "Blorp"
|
||||
- name: REACT_APP_DEFAULT_INSTANCE
|
||||
value: "https://piefed.keyboardvagabond.com,https://lemmy.world,https://lemmy.zip,https://piefed.social"
|
||||
- name: REACT_APP_LOCK_TO_DEFAULT_INSTANCE
|
||||
value: "0"
|
||||
- name: REACT_APP_INSTANCE_SELECTION_MODE
|
||||
value: "default_first"
|
||||
resources:
|
||||
requests:
|
||||
cpu: 50m
|
||||
memory: 64Mi
|
||||
limits:
|
||||
cpu: 200m
|
||||
memory: 128Mi
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 10
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 5
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /
|
||||
port: 80
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 3
|
||||
32
manifests/applications/blorp/ingress.yaml
Normal file
32
manifests/applications/blorp/ingress.yaml
Normal file
@@ -0,0 +1,32 @@
|
||||
---
|
||||
apiVersion: networking.k8s.io/v1
|
||||
kind: Ingress
|
||||
metadata:
|
||||
name: blorp-ingress
|
||||
namespace: blorp-application
|
||||
labels:
|
||||
app.kubernetes.io/name: blorp
|
||||
app.kubernetes.io/component: ingress
|
||||
annotations:
|
||||
kubernetes.io/ingress.class: nginx
|
||||
nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
|
||||
# CORS headers for API calls to PieFed backend
|
||||
nginx.ingress.kubernetes.io/enable-cors: "true"
|
||||
nginx.ingress.kubernetes.io/cors-allow-methods: "GET, POST, PUT, DELETE, OPTIONS"
|
||||
nginx.ingress.kubernetes.io/cors-allow-headers: "DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range,Authorization"
|
||||
nginx.ingress.kubernetes.io/cors-allow-origin: "*"
|
||||
spec:
|
||||
ingressClassName: nginx
|
||||
tls: [] # Empty - TLS handled by Cloudflare Zero Trust
|
||||
rules:
|
||||
- host: blorp.keyboardvagabond.com
|
||||
http:
|
||||
paths:
|
||||
- path: /
|
||||
pathType: Prefix
|
||||
backend:
|
||||
service:
|
||||
name: blorp-web
|
||||
port:
|
||||
number: 80
|
||||
|
||||
9
manifests/applications/blorp/kustomization.yaml
Normal file
9
manifests/applications/blorp/kustomization.yaml
Normal file
@@ -0,0 +1,9 @@
|
||||
---
|
||||
apiVersion: kustomize.config.k8s.io/v1beta1
|
||||
kind: Kustomization
|
||||
|
||||
resources:
|
||||
- namespace.yaml
|
||||
- deployment.yaml
|
||||
- service.yaml
|
||||
- ingress.yaml
|
||||
10
manifests/applications/blorp/namespace.yaml
Normal file
10
manifests/applications/blorp/namespace.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Namespace
|
||||
metadata:
|
||||
name: blorp-application
|
||||
labels:
|
||||
name: blorp-application
|
||||
app.kubernetes.io/name: blorp
|
||||
app.kubernetes.io/component: namespace
|
||||
|
||||
19
manifests/applications/blorp/service.yaml
Normal file
19
manifests/applications/blorp/service.yaml
Normal file
@@ -0,0 +1,19 @@
|
||||
---
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
name: blorp-web
|
||||
namespace: blorp-application
|
||||
labels:
|
||||
app.kubernetes.io/name: blorp
|
||||
app.kubernetes.io/component: web
|
||||
spec:
|
||||
type: ClusterIP
|
||||
ports:
|
||||
- port: 80
|
||||
targetPort: 80
|
||||
protocol: TCP
|
||||
name: http
|
||||
selector:
|
||||
app.kubernetes.io/name: blorp
|
||||
app.kubernetes.io/component: web
|
||||
Reference in New Issue
Block a user