<p><a href="https://i.stack.imgur.com/MZJlZ.png" rel="nofollow noreferrer">ingress and service</a></p>
<p><em><strong>PLEASE CLICK THE LINK TO VIEW THE IMAGE</strong></em></p>
<p>As a beginner, I tried to deploy Jenkins on azure Kubernetes. but I could not able to access the dashboard from the outside location.</p>

IOT Test
<p>Maybe you do something wrong. Here is an example YAML file to deploy the Jenkins in AKS with a service and it's accessible:</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: jenkins
spec:
  replicas: 1
  selector:
    matchLabels:
      app: jenkins
  template:
    metadata:
      labels:
        app: jenkins
    spec:
      containers:
      - name: jenkins
        image: jenkins/jenkins
        ports:
        - containerPort: 50000
---
apiVersion: v1
kind: Service
metadata:
  name: jenkins-service
spec:
  type: LoadBalancer
  selector:
    app: jenkins
  ports:
  - name: test1
    port: 8080
    targetPort: 8080
</code></pre>
<p>screenshot of the access:</p>
<p><a href="https://i.stack.imgur.com/DsDta.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/DsDta.png" alt="enter image description here" /></a></p>
<p><a href="https://i.stack.imgur.com/vJzWf.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vJzWf.png" alt="enter image description here" /></a></p>
<p>When the service is accessible, it's also accessible even if you add an ingress.</p>
