Compare commits

...

2 Commits

Author SHA1 Message Date
33886c486f export port 80
All checks were successful
Gitea Actions Demo / bake (push) Successful in 1m55s
2025-03-07 21:53:04 -06:00
b0f7588610 add Kubernetes manifests
All checks were successful
Gitea Actions Demo / bake (push) Successful in 2m7s
2025-03-07 21:43:36 -06:00
4 changed files with 44 additions and 0 deletions

View File

@ -2,3 +2,4 @@ FROM nginx:latest
COPY cats /usr/share/nginx/html/cats
COPY nginx.conf /etc/nginx/nginx.conf
COPY default.conf /etc/nginx/conf.d/default.conf
EXPOSE 80

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: IfNotPresent
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