ingres

  1. Включение аддона microk8s enable ingress
  2. После этого можно создавать ингресы примерно вот так:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  annotations:
    cert-manager.io/cluster-issuer: lets-encrypt
    meta.helm.sh/release-name: grafana
    meta.helm.sh/release-namespace: monitoring
  creationTimestamp: "2024-08-23T10:19:10Z"
  generation: 3
  labels:
    app.kubernetes.io/instance: grafana
    app.kubernetes.io/managed-by: Helm
    app.kubernetes.io/name: grafana
    app.kubernetes.io/version: 11.1.4
    helm.sh/chart: grafana-8.4.7
  name: grafana
  namespace: monitoring
  resourceVersion: "4379574"
  uid: e2fe91d3-bcad-4476-b523-7ddea8f279be
spec:
  ingressClassName: nginx
  rules:
  - host: grafana.mak-sim.ru
    http:
      paths:
      - backend:
          service:
            name: grafana
            port:
              number: 80
        path: /
        pathType: Prefix
  tls:
  - hosts:
    - grafana.mak-sim.ru
    secretName: grafana-tls
status:
  loadBalancer:
    ingress:
    - ip: 127.0.0.1