Try Devtron Enterprise!
Start Free Trial
LogoLogo
WebsiteDevtron demoGithub RepoJoin Discord
v0.4
v0.4
  • Overview
  • Devtron
    • Setup
      • Installing Devtron
        • Install Devtron with CI/CD integration
        • Install Devtron
        • Installation Configurations
        • Override Configurations
        • Ingress setup for devtron installation
      • Devtron Integrations
      • Global Configurations
        • GitOps
        • Git Accounts
        • Container Registries
        • Chart Repositories
        • Custom Charts
        • Cluster And Environments
        • Projects
        • SSO Login Service
        • Authorization
          • User Permissions
          • Permission Groups
          • API Tokens
        • Manage Notification
        • Deploy a sample App
        • External links
      • Devtron Upgrade
        • Update Devtron from Devtron UI
        • 0.4.x-0.4.x
        • 0.3.x-0.4.x
        • 0.3.x-0.3.x
        • 0.2.x-0.3.x
    • User Guide
      • Creating Application
        • Git Repository
        • Docker Build Configuration
        • Deployment Template
          • Rollout Deployment
          • Job and Cronjob
        • Workflow
          • CI Pipeline
            • Pre-Build/Post-Build tasks
          • CI Pipeline (Legacy)
          • Automated test suite integration in CI
          • CD Pipeline
        • Config Maps
        • Secrets
        • Environment Overrides
        • Application Metrics
      • Application Details
      • Cloning Application
      • Deploying Application
        • Triggering CI
        • Triggering CD
      • Deploy Chart
        • Overview Of Charts
        • Charts Create Update Upgrade Deploy Delete
        • Chart Group Create Edit And Deploy
        • Examples
          • Deploying Mysql Helm Chart
          • Deploying MongoDB Helm Chart
      • Debugging Deployment And Monitoring
      • Namespaces And Environments
      • Security Features
      • Deleting Application
      • Bulk Update
      • Command Bar
      • Use Cases
        • Devtron Generic Helm Chart To Run Cron Job Or One Time Job
        • Connect SpringBoot with Mysql Database
        • Connect Expressjs With Mongodb Database
        • Connect Django With Mysql Database
      • Telemetry Overview
    • FAQs & Troubleshooting
      • Devtron Troubleshooting
Powered by GitBook
On this page

Was this helpful?

Export as PDF
  1. Devtron
  2. Setup
  3. Installing Devtron

Ingress setup for devtron installation

PreviousOverride ConfigurationsNextDevtron Integrations

Last updated 2 years ago

Was this helpful?

After Devtron is installed, Devtron is accessible through service devtron-service. If you want to access devtron through ingress, edit devtron-service and change the loadbalancer to ClusterIP. You can do this using kubectl patch command like :

kubectl patch -n devtroncd svc devtron-service -p '{"spec": {"ports": [{"port": 80,"targetPort": "devtron","protocol": "TCP","name": "devtron"}],"type": "ClusterIP","selector": {"app": "devtron"}}}'

After that create ingress by applying the ingress yaml file. You can use to create ingress to access devtron:

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  labels:
    app: devtron
    release: devtron
  name: devtron-ingress
spec:
  ingressClassName: nginx
  rules:
  - http:
      paths:
      - backend:
          service:
            name: devtron-service
            port:
              number: 80
        path: /orchestrator
        pathType: ImplementationSpecific 
      - backend:
          service:
            name: devtron-service
            port:
              number: 80
        path: /dashboard
        pathType: ImplementationSpecific
      - backend:
          service:
            name: devtron-service
            port:
              number: 80
        path: /grafana
        pathType: ImplementationSpecific  
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  labels:
    app: devtron
    release: devtron
  name: devtron-ingress
spec:
  rules:
  - http:
      paths:
      - backend:
          serviceName: devtron-service
          servicePort: 80
        path: /orchestrator
      - backend:
          serviceName: devtron-service
          servicePort: 80
        path: /dashboard
      - backend:
          service:
            name: devtron-service
            port:
              number: 80
        path: /grafana
        pathType: ImplementationSpecific  

Optionally you also can access devtron through a specific host like :

apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
  labels:
    app: devtron
    release: devtron
  name: devtron-ingress
spec:
  ingressClassName: nginx
  rules:
  - http:
      paths:
      - backend:
          service:
            name: devtron-service
            port:
              number: 80
        host: devtron.example.com
        path: /orchestrator
        pathType: ImplementationSpecific 
      - backend:
          service:
            name: devtron-service
            port:
              number: 80
       Host: devtron.example.com
        path: /dashboard
        pathType: ImplementationSpecific
      - backend:
          service:
            name: devtron-service
            port:
              number: 80
        path: /grafana
        pathType: ImplementationSpecific  

You can access devtron from any host after applying this yaml. For k8s versions <1.19, :

this yaml file
apply this yaml