Experiment with the Java Operator SDK.
Goal: Reproduce Uber's DevPod, but simpler!
mvn clean compile
mvn jib:dockerBuildIf 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# 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# Deploy your CRDs
kubectl apply -f ./k8s/devpod-charles.yaml