Skip to content
This repository has been archived by the owner on Jan 26, 2022. It is now read-only.

riotkit-org/riotkit-do-example-kubernetes-workspace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

K8S Workspace

Create Kubernetes/OKD deployments without duplicating the code. Use JINJA2 templating to share blocks between YAMLS, that's EASY!

Given you have an application "hello-world", create a common file, parametrize it, then create environments eg. env, dev, prod with just variables to fill up.

{%- set APP_NAME = "hello-dev" -%}
{%- set APP_NAMESPACE = "default" -%}
{%- set APP_DOCKER_IMAGE = "nginx:1.19" -%}
{%- set APP_URL = "hello-dev.local" -%}

{% extends "templates/spring-boot-common/common-deployment.yaml.j2" %}

Usage locally or at CI

rkd :k8s:yaml hello-world --env=hello-dev
rkd :k8s:apply hello-world --env=hello-dev

# or with a multiple tasks combined
rkd @ hello-world --env=hello-dev :k8s:yaml :k8s:apply

# combined with a dry run
rkd @ hello-world --env=hello-dev :k8s:yaml :k8s:apply --dry-run

About

Example environment for deploying Kubernetes/OKD applications with YAML parts sharing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published