Gitlab CI/CD Pipeline fails to establish connection to Gitlab Runner deployed on AKS cluste

Gitlab CI/CD Pipeline fails to establish a connection to Gitlab Runner deployed on AKS cluster.

Note: Verified Gitlab is successfully Integrated to Azure AKS Cluster

ERROR while running the Ci?CD pipeline :


Running with gitlab-runner 12.3.0~beta.1889.gff7f313e (ff7f313e)

2 on sdmgt16au_dpl_ci_development_runner_staging_kubernetes y_N_pNmb

3Using Kubernetes namespace: gitlab-managed-apps

00:00

4Using Kubernetes executor with image ubuntu:16.04 …

8ERROR: Job failed (system failure): Post http://anrama-dpl-anrama-dpl-aks-r-4b104a-16751098.hcp.eastus.azmk8s.io/api/v1/namespaces/gitlab-managed-apps/pods: dial tcp 52.191.233.60:80: getsockopt: connection refused


GitLab Version: 13.7.4

Executor: Kubernetes

Gilab gitlab-ci.yml


deploy_kubernetes:
stage: deploy_kubernetes
type: deploy
tags:

  • kubernetes

environment:
name: staging
url: sdmgt16au.vsp.sas.com
script:
- echo “deploy_kubernetes - start”
- /usr/local/bin/kubectl cluster-info
- echo “deploy_kubernetes - end”

only:
- staging


/etc/gitlab-runner/config.toml:


[[runners]]
name = “sdmgt16au_dpl_ci_development_runner_staging_kubernetes”
url = “https://gitlab.sas.com/ci
token = “y_N_pNmbkNfN9skmtK-z”
executor = “kubernetes”
builds_dir = “/u01/zfs/sso/devel/staging”
[runners.custom_build_dir]
[runners.cache]
[runners.cache.s3]
[runners.cache.gcs]
[runners.kubernetes]
host = “anrama-dpl-anrama-dpl-aks-xxxxxxxxxxxxxxxxxxxxxzmk8s.io
port = “80”
image = “ubuntu:16.04”
namespace = “gitlab-managed-apps”
bearer_token_overwrite_allowed = true
privileged = true
allow_privilege_escalation = true
[runners.kubernetes.node_selector]
gitlab = “true”
[runners.kubernetes.pod_security_context]
[runners.kubernetes.volumes]



Any help is appreciated
~sai