Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.25 KB

File metadata and controls

55 lines (37 loc) · 1.25 KB

DevPod Operator

Experiment with the Java Operator SDK.

Goal: Reproduce Uber's DevPod, but simpler!

CNCF Operator Framework (French)

Dev set up

🐳 Build Docker image

mvn clean compile
mvn jib:dockerBuild

☸️ Kind cluster

If you don't have any cluster, start a KinD!

# Create kind cluster
kind create cluster --config="./k8s/kind/config.yaml" --name=cncf-cluster

# Delete kind cluster
kind delete cluster -n cncf-cluster

# Load local image in KinD cluster
kind -n cncf-cluster load docker-image devpod-operator

💻 Installation

# Create a new namespace
kubectl create namespace "cncf"
kubectl config set-context --namespace=cncf --current

# Install the Operator
kubectl apply -f ./k8s/operator.yaml

# Install the CRDs
kubectl apply -f ./target/classes/META-INF/fabric8/devpods.com.cncf-v1.yml

# Start using the CRDs
kubectl apply -f ./k8s/devpod-charles.yaml

🚀 Usage

# Deploy your CRDs
kubectl apply -f ./k8s/devpod-charles.yaml