add Kubernetes manifests

This commit is contained in:
Ryan Cavicchioni 2025-03-07 21:14:48 -06:00
parent ce3b64132a
commit 9ddb30771d
Signed by: ryanc
SSH Key Fingerprint: SHA256:KbXiwUnZnHFwFtt3Bytd+F3FN9pPHn1Z1cxMIE1TPbg
3 changed files with 43 additions and 0 deletions

23
kustomize/deployment.yaml Normal file
View File

@ -0,0 +1,23 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: caas
spec:
replicas: 2
selector:
matchLabels:
app: caas
template:
metadata:
labels:
app: caas
spec:
containers:
- name: caas
image: git.kill0.net/ryanc/caas:latest
imagePullPolicy: Always
ports:
- name: http
containerPort: 80
protocol: TCP

View File

@ -0,0 +1,6 @@
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment.yaml
- service.yaml

14
kustomize/service.yaml Normal file
View File

@ -0,0 +1,14 @@
---
apiVersion: v1
kind: Service
metadata:
name: caas
spec:
type: ClusterIP
selector:
app: caas
ports:
- name: http
port: 80
protocol: TCP
targetPort: http