Add example-admin application.

This commit is contained in:
2025-06-07 09:36:37 -07:00
parent cc21cebc39
commit 5b282f353a
6 changed files with 87 additions and 68 deletions

View File

@@ -0,0 +1,43 @@
---
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: 50Mi
requests:
cpu: 100m
memory: 10Mi
livenessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 30
periodSeconds: 10
readinessProbe:
httpGet:
path: /
port: 80
initialDelaySeconds: 5
periodSeconds: 5

View File

@@ -0,0 +1,22 @@
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: example-admin
namespace: example-admin
spec:
rules:
- host: example-admin.{{ (ds "config").cloud.internalDomain }}
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: example-admin
port:
number: 80
tls:
- hosts:
- example-admin.{{ (ds "config").cloud.internalDomain }}
secretName: wildcard-internal-wild-cloud-tls

View File

@@ -0,0 +1,14 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namespace: example-admin
labels:
- includeSelectors: true
pairs:
app: example-admin
managedBy: kustomize
partOf: wild-cloud
resources:
- namespace.yaml
- deployment.yaml
- ingress.yaml
- service.yaml

View File

@@ -0,0 +1,4 @@
name: example-admin
install: true
description: An example application that is deployed with internal-only access.
version: 1.0.0

View File

@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: example-admin

View File

@@ -1,50 +1,4 @@
---
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:
@@ -59,25 +13,3 @@ spec:
- 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