testing build and test

This commit is contained in:
2026-03-03 15:30:25 -07:00
parent 7eb95af0b8
commit 2746eadab7
11 changed files with 383 additions and 178 deletions

62
kubernetes/frontend.yml Normal file
View File

@@ -0,0 +1,62 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend-deployment
namespace: alex-elixir-demo
labels:
app: frontend
spec:
replicas: 2
selector:
matchLabels:
app: frontend
template:
metadata:
labels:
app: frontend
spec:
containers:
- name: frontend
image: alexmickelson/elixir-demo-frontend:$GITHUB_BUILD_NUMBER
ports:
- containerPort: 80
resources:
requests:
memory: 128Mi
cpu: 100m
limits:
memory: 256Mi
cpu: 200m
---
apiVersion: v1
kind: Service
metadata:
namespace: alex-elixir-demo
name: frontend
spec:
selector:
app: frontend
ports:
- protocol: TCP
port: 80
targetPort: 80
type: ClusterIP
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
namespace: alex-elixir-demo
name: frontend
spec:
ingressClassName: nginx
rules:
- host: elixir-demo.alex-kube.duckdns.org
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: frontend
port:
number: 80