tree: 5d8c201b292ed201f2c0981dede6ab7522988b6c [path history] [tgz]
  1. cmd/
  2. hack/
  3. manifests/
  4. pkg/
  5. build.sh
  6. Dockerfile
  7. go.mod
  8. go.sum
  9. Makefile
  10. pom.xml
  11. README.md
submarine-cloud/README.md

Submarine Operator

Run (Method 1)

# Build Submarine Operator Binary 
cd submarine/submarine-cloud
make build

# Create CRD (SubmarineCluster) 
kubectl apply -f manifests/crd.yaml

# Create a kind cluster
./hack/kind-cluster-build.sh --name "submarine"

# Launch Submarine Operator (Method 1)
# ([Kind v0.6.0 deprecates `kind get kubeconfig-path`](https://github.com/kubernetes-sigs/cluster-api/issues/1796)) 
KUBECONFIG=$(kind get kubeconfig-path --name submarine)
./submarine-operator --kubeconfig=${KUBECONFIG} --alsologtostderr --v=7

# Launch Submarine Operator (Method 2)
kind get kubeconfig --name submarine > kind_kubeconfig
KUBECONFIG=$(path of kind_kubeconfig)
./bin/submarine-operator --kubeconfig=${KUBECONFIG} --alsologtostderr --v=7

Run (Method 2)

kubectl apply -f submarine-operator