I have a K3s cluster (local) and am trying to access Jenkins, SonarQube, and Nexus through Nginx Ingress at specific paths.
like > ( devopstools.com/jenkins, devopstools.com/nexus, devopstools.com/sonarqube ).
However, these tools are not fully loading when accessed through Ingress.
Has anyone faced a similar issue or has suggestions on how to fix this?
This is my current Nginx Ingress configuration:
like > ( devopstools.com/jenkins, devopstools.com/nexus, devopstools.com/sonarqube ).
However, these tools are not fully loading when accessed through Ingress.
Has anyone faced a similar issue or has suggestions on how to fix this?
This is my current Nginx Ingress configuration:
Code:
/etc/hosts
127.0.0.1 localhost
127.0.1.1 ubuntu
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
192.168.8.113 devopstools.com
YAML:
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: jenkins-ingress
namespace: jenkins-ns
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: nginx
rules:
- host: devopstools.com
http:
paths:
- path: /jenkins
pathType: Prefix
backend:
service:
name: my-jenkins
port:
number: 8080
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: sonarqube-ingress
namespace: sonarqube-ns
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: nginx
rules:
- host: devopstools.com
http:
paths:
- path: /sonarqube
pathType: Prefix
backend:
service:
name: my-sonarqube-sonarqube
port:
number: 9000
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: nexus-ingress
namespace: nexus-ns
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /
spec:
ingressClassName: nginx
rules:
- host: devopstools.com
http:
paths:
- path: /nexus
pathType: Prefix
backend:
service:
name: nexus-service
port:
number: 8081