Kuberig

Kuberig

  • Docs
  • Blog
  • Help

›Code Samples

Getting started

  • Intro
  • Quick Start
  • DSL Intro

Environments

  • Initializing an Environment
  • Managing Container Versions
  • Environment Support

Resource Coding

  • Coding Resources
  • Resource Grouping
  • Resource Apply Action
  • DSL Details

Code Samples

  • Defining a ConfigMap
  • Defining a Secret
  • Defining a Deployment
  • Defining a Service
  • Defining an Ingress

Reference

  • Configuration
  • Repository Organisation
  • Encryption Support
  • Service Account Setup

Defining an Ingress

@EnvResource
fun simpleIngress(): IngressDsl {
    val appUrl = environmentConfig("app.url")
    val name = "simple-app"

    return ingress {
        metadata {
            name(name)
        }
        spec {
            rules {
                rule {
                    host(appUrl)
                    http {
                        paths {
                            path {
                                path("/")
                                backend {
                                    serviceName(name)
                                    servicePort(80)
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
Last updated on 12/30/2020
← Defining a ServiceConfiguration →
Kuberig
Docs
HomeQuick StartDSL Intro
Community
Stack OverflowDiscordTwitter
More
BlogGitHubStar
Follow @kuberigio
Copyright © 2021 Rigeldev BV