Skip to content

Commit 4af038a

Browse files
authored
add trig rush deployment (#36)
1 parent de23b61 commit 4af038a

File tree

5 files changed

+96
-0
lines changed

5 files changed

+96
-0
lines changed

apps/trig-rush/deployment.yaml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
---
2+
apiVersion: v1
3+
kind: Service
4+
metadata:
5+
name: trigonometry-rush
6+
spec:
7+
selector:
8+
app: trigonometry-rush
9+
ports:
10+
- protocol: TCP
11+
port: 80
12+
targetPort: 8080
13+
14+
---
15+
kind: Deployment
16+
apiVersion: apps/v1
17+
metadata:
18+
name: trigonometry-rush
19+
spec:
20+
revisionHistoryLimit: 3
21+
replicas: 3
22+
selector:
23+
matchLabels:
24+
app: trigonometry-rush
25+
template:
26+
metadata:
27+
labels:
28+
app: trigonometry-rush
29+
spec:
30+
containers:
31+
- name: trigonometry-rush
32+
image: "docker.io/clanktron/trigonometry-rush:stable"
33+
resources:
34+
requests:
35+
memory: "64Mi"
36+
cpu: "50m"
37+
limits:
38+
memory: "128Mi"
39+
cpu: "200m"
40+
ports:
41+
- name: http
42+
containerPort: 8080
43+
protocol: TCP
44+
readinessProbe:
45+
httpGet:
46+
path: /
47+
port: http

apps/trig-rush/ingress.yaml

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
apiVersion: networking.k8s.io/v1
3+
kind: Ingress
4+
metadata:
5+
name: trigonometry-rush
6+
labels:
7+
app.kubernetes.io/name: trigonometry-rush
8+
annotations:
9+
cert-manager.io/cluster-issuer: letsencrypt
10+
traefik.ingress.kubernetes.io/router.entrypoints: web,websecure
11+
traefik.ingress.kubernetes.io/router.tls: "true"
12+
spec:
13+
ingressClassName: ${EXTERNAL_INGRESS_CLASS}
14+
tls:
15+
- hosts:
16+
- "trigonometry-rush.${EXTERNAL_DOMAIN}"
17+
secretName: "trigonometry-rush-tls"
18+
rules:
19+
- host: "trigonometry-rush.${EXTERNAL_DOMAIN}"
20+
http:
21+
paths:
22+
- path: "/"
23+
pathType: Prefix
24+
backend:
25+
service:
26+
name: trigonometry-rush
27+
port:
28+
number: 80

apps/trig-rush/kustomization.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
apiVersion: kustomize.config.k8s.io/v1beta1
2+
kind: Kustomization
3+
resources:
4+
- deployment.yaml
5+
- ingress.yaml

clusters/home/apps/kustomization.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ resources:
77
- jellyfin.yaml
88
- littlelink.yaml
99
- vaultwarden.yaml
10+
- trig-rush.yaml
1011

1112
patches:
1213
- target:

clusters/home/apps/trig-rush.yaml

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
apiVersion: v1
2+
kind: Namespace
3+
metadata:
4+
name: trigonometry-rush
5+
6+
---
7+
apiVersion: kustomize.toolkit.fluxcd.io/v1
8+
kind: Kustomization
9+
metadata:
10+
name: trigonometry-rush
11+
spec:
12+
targetNamespace: trigonometry-rush
13+
path: "./apps/trigonometry-rush"
14+
postBuild:
15+
substituteFrom: []

0 commit comments

Comments
 (0)