Skip to content

LostInBrittany/k8s-and-quarkus-gitpod

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gitpod GitPod Workspace for Kubernetes and Quarkus

A working Gitpod setup to work with Kubernetes and Quarkus. The workspace includes:

  • For Kubernetes: Kubectl, K9s, Helm, Velero & Kustomize.
  • For Quarkus: Java 11, Quarkus

To open the workspace, simply click on the Open in Gitpod button, or use this link.

Open in Gitpod

Configuring Kubeconfig

To administrate your Kubernetes cluster from Gitpod, you need to add your Kubeconfig to your Gitpod workspace. There are two ways to do it:

  • Copying the content of your kubeconfig file into a ~/.kube/config file in your Gitpod workspace.

    nano ~/.kube/config
  • Adding your kubeconfig as a Gitpod

Gitpod supports encrypted, user-specific environment variables. They are stored as part of your user settings and can be used to set access tokens, or pass any other kind of user-specific information to your workspaces.

To do it you need to follow this steps:

  1. Convert Kubeconfig to base64

    cat kubeconfig | base64 -w 0
  2. Using GitPod variables to define a K8S_CTX variable with the content of your kubeconfig in base64 as value:

    GitPod environment variables

    This project is configured to extract the kubeconfig from the value of K8S_CTX and inject it in the ~/.kube/config file:

    .gitpod.yml:

    tasks:
        - name: Set K8s context
        command: echo $KUBECONFIG | base64 -d > ~/.kube/config    

About

A GitPod Workspace for Kubernetes & Quarkus

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published