PLEASE CLICK THE LINK TO VIEW THE IMAGE
As a beginner, I tried to deploy Jenkins on azure Kubernetes. but I could not able to access the dashboard from the outside location.
Maybe you do something wrong. Here is an example YAML file to deploy the Jenkins in AKS with a service and it's accessible:
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
screenshot of the access:
When the service is accessible, it's also accessible even if you add an ingress.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.