You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
RuoYi-Vue-cloud/cloud/deploy/ruoyi-java.yaml

58 lines
1.0 KiB

---
apiVersion: apps/v1
kind: Deployment
metadata:
name: ruoyi-java
spec:
replicas: 4
selector:
matchLabels:
app: ruoyi-java
template:
metadata:
labels:
app: ruoyi-java
spec:
containers:
- name: ruoyi-java
image: 192.168.96.141/library/ruoyi-java
resources:
limits:
memory: "1024Mi"
cpu: "1000m"
ports:
- containerPort: 8080
---
apiVersion: v1
kind: Service
metadata:
name: ruoyi-java-service
spec:
selector:
app: ruoyi-java
ports:
- port: 8080
targetPort: 8080
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: ruoyi-java-ingress
labels:
name: ruoyi-java-ingress
spec:
ingressClassName: nginx
rules:
- host: java.server
http:
paths:
- pathType: Prefix
path: "/"
backend:
service:
name: ruoyi-java-service
port:
number: 8080