0

I have 2 machines:

  • My laptop (IP: 192.168.1.20)
  • My home server (IP: 192.168.1.21)

I installed ArgoCD and minikube on my home server and the installation was successful. When I use the forward command defined in the official document:

kubectl port-forward svc/argocd-server -n argocd --address 0.0.0.0 8080:443

From my laptop, I can access to ArgoCD using the following endpoint: http://192.168.1.21:8080/.

But I want to totally expose ArgoCD port that I can access to it any time I want. I have searched and found the Ingres tutorial (https://argo-cd.readthedocs.io/en/stable/operator-manual/ingress/#option-1-ssl-passthrough).

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  name: argocd-server-http-ingress
  namespace: argocd
  annotations:
    nginx.ingress.kubernetes.io/force-ssl-redirect: "true"
    nginx.ingress.kubernetes.io/backend-protocol: "HTTP"
spec:
  ingressClassName: nginx
  rules:
  - http:
      paths:
      - path: /
        pathType: Prefix
        backend:
          service:
            name: argocd-server
            port:
              name: http
    host: cd.mydomain.ink
  tls:
  - hosts:
    - cd.mydomain.ink
    secretName: argocd-ingress-http

When I tried accessing these following links, I only see the connection refused:

enter image description here

I have tried setting --insecure in argocd deployment, but no luck:

containers:
      - args:
        - /usr/local/bin/argocd-server
        - --insecure

I tried changing the ArgoCD server (following this tutorial ) to Load balancer, but it didn't work:

Am I missing anything ?

Thanks

Redplane
  • 101

0 Answers0