apiVersion: apps/v1 kind: Deployment metadata: name: ruoyi-nginx spec: replicas: 1 selector: matchLabels: app: ruoyi-nginx template: metadata: labels: app: ruoyi-nginx spec: containers: - name: ruoyi-nginx image: 192.168.96.141/library/ruoyi-nginx:v1.0 ports: - containerPort: 80 --- apiVersion: v1 kind: Service metadata: name: ruoyi-nginx-service spec: selector: app: ruoyi-nginx ports: - port: 80 targetPort: 80 --- apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: ruoyi-nginx-ingress labels: name: ruoyi-nginx-ingress spec: ingressClassName: nginx rules: - host: ruoyi.nginx.com http: paths: - pathType: Prefix path: "/" backend: service: name: ruoyi-nginx-service port: number: 80