Browse Source

kubectl-create crds instead of kubectl-apply

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 <liulinghui@huawei.com>
tags/v0.1.0
llhuii 4 years ago
parent
commit
e8400b4fe4
2 changed files with 3 additions and 6 deletions
  1. +1
    -1
      docs/setup/install.md
  2. +2
    -5
      hack/local-up.sh

+ 1
- 1
docs/setup/install.md View File

@@ -34,7 +34,7 @@ git checkout main


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


### Deploy GM ### Deploy GM


+ 2
- 5
hack/local-up.sh View File

@@ -196,13 +196,10 @@ prepare_k8s_env() {
export KUBECONFIG=$(realpath $TMP_DIR/kubeconfig) export KUBECONFIG=$(realpath $TMP_DIR/kubeconfig)
# prepare our k8s environment # prepare our k8s environment
# create these crds including dataset, model, joint-inference etc. # 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 # create the cluster role for gm
kubectl apply -f build/gm/rbac/
kubectl create -f build/gm/rbac/


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


Loading…
Cancel
Save