Ayush758 / generate-k8s-yaml

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to create and validate Kubernetes YAML - playground

This project includes a devcontainer setup with following tools installed (latest versions):

  • kubernetes
  • kubectl
  • helm
  • docker-from-docker
  • docker-compose
  • yq
  • cdk8s
  • naml
  • Go
  • TypeScript
  • vs code extensions
  • kubeval
  • dagger

Please note that the image is relatively big (>1.5 GB) given all the tools installed. Some of the tools/features are disabled in the .devcontainer file:

  • kubernetes
  • kubectl
  • helm

You can easily enable them by editing features section in the devcontianer file, uncomment features you like to enable and run:

Remote-Containers: Rebuild and Reopen in Container

A note on devcontianer setup.

Here we are taking advantage of a new preview feature; dev container features. This functionality is making it easier to install and configure devcontainer by adding a thin abstraction layer. Instead of adding potentially complicated commands directly to a Dockerfile, you can just enable/disable a feature directly in a devcontainer file. List of features is growing, so keep an eye on it if the feature you want is currenly missing. You will notice that docker CLI has access to the contianers and images on your host. Please note that the CLI in this contianer runs as root. To learn more about this feature, check out this repo

How to use the playground

With the tools pre-installed you can experiment with different ways to generate Kubernetes YAML. Each folder contians a code sample as well as README file to test the tools.

About


Languages

Language:TypeScript 99.8%Language:Dockerfile 0.2%Language:JavaScript 0.0%