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 a Secret

@EnvResource
fun basicSecret(): SecretDsl {
    return secret {
        metadata {
            name("basic-secret")
        }
        // use an encrypted file (environment specific)
        data("app-secrets.properties", environmentFileBytes("files/.encrypted.custom-app-secrets.properties"))
        // use an encrypted config value (environment specific)
        data("some.password", environmentConfig("some.password").toByteArray())
    }
}
Last updated on 12/30/2020
← Defining a ConfigMapDefining a Deployment →
Kuberig
Docs
HomeQuick StartDSL Intro
Community
Stack OverflowDiscordTwitter
More
BlogGitHubStar
Follow @kuberigio
Copyright © 2021 Rigeldev BV