Skip to content

Commit

Permalink
kubectl-create crds instead of kubectl-apply
Browse files Browse the repository at this point in the history
since we switch to pod template which has large crd yaml, this would
lead to the error `metadata.annotations: Too long: must have at most
262144 bytes` when `kubectl apply -f`

Signed-off-by: llhuii <[email protected]>
  • Loading branch information
llhuii committed Mar 30, 2021
1 parent c569f8a commit e8400b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/setup/install.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ git checkout main

```shell
# create these crds including dataset, model, joint-inference
kubectl apply -f build/crds/
kubectl create -f build/crds/
```

### Deploy GM
Expand Down
7 changes: 2 additions & 5 deletions hack/local-up.sh
Original file line number Diff line number Diff line change
Expand Up @@ -196,13 +196,10 @@ prepare_k8s_env() {
export KUBECONFIG=$(realpath $TMP_DIR/kubeconfig)
# prepare our k8s environment
# create these crds including dataset, model, joint-inference etc.
kubectl apply -f build/crds/

# gm, lc will be created in this namespace
kubectl create namespace $NAMESPACE
kubectl create -f build/crds/

# create the cluster role for gm
kubectl apply -f build/gm/rbac/
kubectl create -f build/gm/rbac/

add_cleanup "
kubectl delete -f build/crds/
Expand Down

0 comments on commit e8400b4

Please sign in to comment.