Skip to main content

ingress

ben.wangzLess than 1 minute

ingress

prepare

  1. k8s is ready
  2. argocd is ready and logged in

installation

  1. prepare ingress-nginx.yaml
    • apiVersion: argoproj.io/v1alpha1
      kind: Application
      metadata:
        name: ingress-nginx
      spec:
        syncPolicy:
          syncOptions:
          - CreateNamespace=true
        project: default
        source:
          repoURL: https://ben-wangz.github.io/helm-chart-mirror/charts
          chart: ingress-nginx
          targetRevision: 4.9.0
          helm:
            releaseName: ingress-nginx
            values: |
              controller:
                image:
                  registry: registry.k8s.io
                service:
                  enabled: true
                  type: NodePort
                  nodePorts:
                    http: 32080
                    https: 32443
                    tcp:
                      8080: 32808
                admissionWebhooks:
                  enabled: true
                  patch:
                    enabled: true
                    image:
                      registry: registry.k8s.io
              defaultBackend:
                enabled: false
        destination:
          server: https://kubernetes.default.svc
          namespace: basic-components
      
      
  2. apply to k8s
    • kubectl -n argocd apply -f ingress-nginx.yaml
      
  3. sync by argocd
    • argocd app sync argocd/ingress-nginx