# PP|apiVersion: v1 # ST|kind: Service # PN|metadata: # QH| name: fengling-console # XY| namespace: fengling # SQ| labels: # WP| app: fengling-console # MH|spec: # HQ| type: ClusterIP # SM| selector: # WP| app: fengling-console # WJ| ports: # BQ| - name: http # BY| port: 80 # RX| targetPort: 8080 # TR| protocol: TCP # HH|--- # JZ|apiVersion: networking.k8s.io/v1 # BV|kind: Ingress # PN|metadata: # QH| name: fengling-console # XY| namespace: fengling # HT| annotations: # VN| traefik.ingress.kubernetes.io/router.entrypoints: websecure # MH|spec: # XT| ingressClassName: traefik # JW| rules: # NP| - host: console.fengling.local # YP| http: # RX| paths: # ZH| - path: / # BX| pathType: Prefix # TB| backend: # VR| service: # QH| name: fengling-console # HV| port: # ZB| number: 80