Consolidates services into apps.

This commit is contained in:
2025-06-04 20:42:56 -07:00
parent 2786939f89
commit c03e37bb44
12 changed files with 202 additions and 352 deletions

View File

@@ -0,0 +1,83 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: example-admin
namespace: example-admin
labels:
app: example-admin
spec:
replicas: 1
selector:
matchLabels:
app: example-admin
template:
metadata:
labels:
app: example-admin
spec:
containers:
- name: example-admin
image: nginx:latest
imagePullPolicy: Always
ports:
- containerPort: 80
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 100m
memory: 128Mi
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 5
periodSeconds: 5
env:
- name: ENV_VARIABLE
value: "ENV_VALUE"
---
apiVersion: v1
kind: Service
metadata:
name: example-admin
namespace: example-admin
labels:
app: example-admin
spec:
selector:
app: example-admin
ports:
- port: 80
targetPort: 80
name: http
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: example-admin
namespace: example-admin
spec:
rules:
- host: example-admin.internal.${DOMAIN}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: example-admin
port:
number: 80
tls:
- hosts:
- example-admin.internal.${DOMAIN}
secretName: wildcard-internal-wild-cloud-tls

View File

@@ -0,0 +1,93 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: example-app
namespace: default
labels:
app: example-app
spec:
replicas: 1
selector:
matchLabels:
app: example-app
template:
metadata:
labels:
app: example-app
spec:
containers:
- name: example-app
image: nginx:alpine
imagePullPolicy: Always
ports:
- containerPort: 80
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 100m
memory: 128Mi
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 5
periodSeconds: 5
env:
- name: ENV_VARIABLE
value: "ENV_VALUE"
---
apiVersion: v1
kind: Service
metadata:
name: example-app
namespace: default
labels:
app: example-app
spec:
selector:
app: example-app
ports:
- port: 80
targetPort: 80
name: http
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: example-app
namespace: default
annotations:
external-dns.alpha.kubernetes.io/target: "${DOMAIN}"
external-dns.alpha.kubernetes.io/cloudflare-proxied: "false"
# Optional: Enable HTTPS redirection
traefik.ingress.kubernetes.io/redirect-entry-point: https
# Optional: Enable basic auth
# traefik.ingress.kubernetes.io/auth-type: basic
# traefik.ingress.kubernetes.io/auth-secret: basic-auth
spec:
rules:
- host: example-app.${DOMAIN}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: example-app
port:
number: 80
tls:
- hosts:
- example-app.${DOMAIN}
secretName: wildcard-wild-cloud-tls

View File

@@ -4,19 +4,19 @@ metadata:
name: ghost
namespace: ghost
uid: d01c62ff-68a6-456a-a630-77c730bffc9b
resourceVersion: '2772014'
resourceVersion: "2772014"
generation: 1
creationTimestamp: '2025-04-27T02:01:30Z'
creationTimestamp: "2025-04-27T02:01:30Z"
labels:
app.kubernetes.io/component: ghost
app.kubernetes.io/instance: ghost
app.kubernetes.io/managed-by: Sovereign
app.kubernetes.io/managed-by: Wild
app.kubernetes.io/name: ghost
app.kubernetes.io/version: 5.118.1
annotations:
deployment.kubernetes.io/revision: '1'
deployment.kubernetes.io/revision: "1"
meta.helm.sh/release-name: ghost
meta.helm.sh/release-namespace: ghost
meta.helm.sh/release-namespace: ghost
spec:
replicas: 1
selector:
@@ -29,7 +29,7 @@ spec:
labels:
app.kubernetes.io/component: ghost
app.kubernetes.io/instance: ghost
app.kubernetes.io/managed-by: Sovereign
app.kubernetes.io/managed-by: Wild
app.kubernetes.io/name: ghost
app.kubernetes.io/version: 5.118.1
annotations:
@@ -55,7 +55,7 @@ spec:
command:
- /bin/bash
args:
- '-ec'
- "-ec"
- >
#!/bin/bash
@@ -109,13 +109,13 @@ spec:
protocol: TCP
env:
- name: BITNAMI_DEBUG
value: 'false'
value: "false"
- name: ALLOW_EMPTY_PASSWORD
value: 'yes'
value: "yes"
- name: GHOST_DATABASE_HOST
value: ghost-mysql
- name: GHOST_DATABASE_PORT_NUMBER
value: '3306'
value: "3306"
- name: GHOST_DATABASE_NAME
value: ghost
- name: GHOST_DATABASE_USER
@@ -125,7 +125,7 @@ spec:
- name: GHOST_HOST
value: blog.cloud.payne.io/
- name: GHOST_PORT_NUMBER
value: '2368'
value: "2368"
- name: GHOST_USERNAME
value: admin
- name: GHOST_PASSWORD_FILE
@@ -135,13 +135,13 @@ spec:
- name: GHOST_BLOG_TITLE
value: User's Blog
- name: GHOST_ENABLE_HTTPS
value: 'yes'
value: "yes"
- name: GHOST_EXTERNAL_HTTP_PORT_NUMBER
value: '80'
value: "80"
- name: GHOST_EXTERNAL_HTTPS_PORT_NUMBER
value: '443'
value: "443"
- name: GHOST_SKIP_BOOTSTRAP
value: 'no'
value: "no"
resources:
limits:
cpu: 375m
@@ -236,14 +236,14 @@ status:
unavailableReplicas: 1
conditions:
- type: Available
status: 'False'
lastUpdateTime: '2025-04-27T02:01:30Z'
lastTransitionTime: '2025-04-27T02:01:30Z'
status: "False"
lastUpdateTime: "2025-04-27T02:01:30Z"
lastTransitionTime: "2025-04-27T02:01:30Z"
reason: MinimumReplicasUnavailable
message: Deployment does not have minimum availability.
- type: Progressing
status: 'False'
lastUpdateTime: '2025-04-27T02:11:32Z'
lastTransitionTime: '2025-04-27T02:11:32Z'
status: "False"
lastUpdateTime: "2025-04-27T02:11:32Z"
lastTransitionTime: "2025-04-27T02:11:32Z"
reason: ProgressDeadlineExceeded
message: ReplicaSet "ghost-586bbc6ddd" has timed out progressing.

View File

@@ -7,7 +7,7 @@ metadata:
namespace: "default"
labels:
app.kubernetes.io/instance: ghost
app.kubernetes.io/managed-by: Sovereign
app.kubernetes.io/managed-by: Wild
app.kubernetes.io/name: ghost
app.kubernetes.io/version: 5.118.1
spec:

View File

@@ -7,7 +7,7 @@ metadata:
namespace: "default"
labels:
app.kubernetes.io/instance: ghost
app.kubernetes.io/managed-by: Sovereign
app.kubernetes.io/managed-by: Wild
app.kubernetes.io/name: ghost
app.kubernetes.io/version: 5.118.1
app.kubernetes.io/component: ghost

View File

@@ -7,7 +7,7 @@ metadata:
namespace: "default"
labels:
app.kubernetes.io/instance: ghost
app.kubernetes.io/managed-by: Sovereign
app.kubernetes.io/managed-by: Wild
app.kubernetes.io/name: ghost
app.kubernetes.io/version: 5.118.1
type: Opaque

View File

@@ -7,7 +7,7 @@ metadata:
namespace: "default"
labels:
app.kubernetes.io/instance: ghost
app.kubernetes.io/managed-by: Sovereign
app.kubernetes.io/managed-by: Wild
app.kubernetes.io/name: ghost
app.kubernetes.io/version: 5.118.1
app.kubernetes.io/component: ghost

View File

@@ -7,7 +7,7 @@ metadata:
namespace: "default"
labels:
app.kubernetes.io/instance: ghost
app.kubernetes.io/managed-by: Sovereign
app.kubernetes.io/managed-by: Wild
app.kubernetes.io/name: ghost
app.kubernetes.io/version: 5.118.1
app.kubernetes.io/component: ghost