minikube start --cpus=10 --memory='15g'curl -sL https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.17.0/install.sh | bash -s v0.17.0https://operatorhub.io/operator/knative-operator
kubectl create -f https://operatorhub.io/install/knative-operator.yaml
kubectl get csv -n operatorsWait untill install Succeeded.
kubectl create ns knative-serving
cat << EOF | kubectl apply -f -
apiVersion: operator.knative.dev/v1alpha1
kind: KnativeServing
metadata:
name: knative-serving
namespace: knative-serving
spec: {}
EOFkubectl create ns knative-eventing
cat << EOF | kubectl apply -f -
apiVersion: operator.knative.dev/v1alpha1
kind: KnativeEventing
metadata:
name: knative-eventing
namespace: knative-eventing
spec: {}
EOFhttps://operatorhub.io/operator/eclipse-che
kubectl create -f https://operatorhub.io/install/eclipse-che.yaml
kubectl get csv -n my-eclipse-chehttps://github.com/che-incubator/chectl
./chectl server:deploy --installer=olm -n che --olm-channel=stable --platform=minikubehttps://github.com/openshift-labs/serverless-devfile
Import Devfile from URL: https://raw.githubusercontent.com/openshift-labs/serverless-devfile/master/devfile.yaml
cat << EOF | kubectl apply -f -
apiVersion: v1
kind: ServiceAccount
metadata:
name: sls-service-account
namespace: che
EOFcat << EOF | kubectl apply -f -
apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRoleBinding
metadata:
name: sls-admin
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: cluster-admin
subjects:
- kind: ServiceAccount
name: sls-service-account
namespace: che
EOFkubectl get secrets -o jsonpath="{.items[?(@.metadata.annotations['kubernetes\.io/service-account\.name']=='sls-service-account')].data.token}"|base64 --decodeKUBERNETES_ENDPOINT=https://#this needs to be public
KUBERNETES_PORT=6443
KUBERNETES_SERVICE_ACCOUNT_TOKEN=
KUBERNETES_SKIP_TLS_VERIFY=true
DOCKER_USERNAME=#docker hub credentials
DOCKER_PASSWORD=generate a key at org/access keys
- sls deploy in che and test
- edit hello world
- sls deploy and test