ON-PREM : Helm : How to provide ssh access to git via values.yaml and the hostname?

Currently, I am only able to access git ssh via loadbalancer ip/port.
ex: ssh 10.30.12.5 -p 12222

Available via
service/jb-space-vcs-ext                LoadBalancer   10.108.218.156   10.30.12.5    12222:31458/TCP       18h

Using the hostname does not work.  ex: ssh git.space.poc.k8s.mydomain.com -p 12222

The vcs portion of my values.yaml.  I am not sure if I need to do something with vcs.externalService.*

vcs:
  storage:
    eventbus:
      hostname: "redis-master"
      port: "6379"
      password: "password"
    objectStorage:
      region: "default"
      bucketName: "space-vcs"
      url: "http://minio:9000"
      accessKey: "admin"
      secretKey: "password"
    database:
      name: "space"
      hostname: "postgresql"
      port: "5432"
      username: "postgres"
      password: "password"
  extraJavaOpts: "-DVCS_HOSTING_VCS_GIT_MIRROR_ANY=true"
  secrets:
    spaceAccessKey: "the-key"
  externalUrl: "https://git.space.poc.k8s.mydomain.com"
  spaceExternalUrl: "https://portal.space.poc.k8s.mydomain.com"
  ingress:
    hostname: "git.space.poc.k8s.mydomain.com"
    enabled: true
    selfSigned: true
    tls: true
    annotations:
      cert-manager.io/cluster-issuer: ca-issuer
      external-dns.alpha.kubernetes.io/hostname: git.space.poc.k8s.mydomain.com
    extraTLS:
    - hosts:
      - git.space.poc.k8s.mydomain.com
      secretName: git-portal-tls  
    ingressClassName: nginx     
0
4 comments

Hi Brooke Hedrick, it's necessary to configure the Ingress TCP Proxy Controller for proxying the external ports to the hostnames. 

0

@Brooke Hedrick

Hi, did you manage to set up an ssh connection using a hostname?
0

@... and Skense1,
I am back working on this again.  I did not get this issue resolved last time.

0

Brooke Hedrick, is there anything specific I could help you with? Please share your current state of things, so I could have a closer look. Thanks!

0

Please sign in to leave a comment.