This commit is contained in:
2024-08-25 10:29:40 +08:00
commit bf67d64594
6 changed files with 215 additions and 0 deletions
+24
View File
@@ -0,0 +1,24 @@
apiVersion: apps/v1
kind: Deployment
metadata:
creationTimestamp: null
labels:
app: backend
name: backend
spec:
replicas: 1
selector:
matchLabels:
app: backend
strategy: {}
template:
metadata:
creationTimestamp: null
labels:
app: backend
spec:
containers:
- image: ghcr.io/suyiiyii/sims:main
name: sims
resources: {}
status: {}
+19
View File
@@ -0,0 +1,19 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
creationTimestamp: null
name: backend
spec:
rules:
- host: backend.kl.suyiiyii.top
http:
paths:
- backend:
service:
name: backend
port:
number: 80
path: /
pathType: Exact
status:
loadBalancer: {}
+18
View File
@@ -0,0 +1,18 @@
apiVersion: v1
kind: Service
metadata:
creationTimestamp: null
labels:
app: backend
name: backend
spec:
ports:
- name: 80-8080
port: 80
protocol: TCP
targetPort: 8080
selector:
app: backend
type: ClusterIP
status:
loadBalancer: {}