Installing eclipse-che in native kubernetes platform
At first installing OLM
Requirement: kubectl configred and connect to Kubernetes cluster correct.
1curl -L https://github.com/operator-framework/operator-lifecycle-manager/releases/download/v0.17.0/install.sh -o install.sh
2chmod +x install.sh
3./install.sh v0.17.0
Installing Eclipse-Che Operator
According to: eclipse-che operator
1kubectl create -f https://operatorhub.io/install/eclipse-che.yaml
2# view the Operator resources
3kubectl get pods --all-namespaces | grep olm
4# and the CluseterServiceVersion
5kubectl get csv -n my-eclipse-che
Install Eclipse-che instance use CheCluster resource
1#The partial configure need to change
2 k8s:
3 ingressClass: 'nginx'
4 ingressDomain: 'che.dev.com'
5 ingressStrategy: 'single-host'
6 securityContextFsGroup: ''
7 securityContextRunAsUser: ''
8 singleHostExposureType: ''
9 tlsSecretName: 'self-domain-cert'
10 server:
11 cheHost: 'che.dev.com'
12 cheHostTLSSecret: 'self-domain-cert'
13 #You can add more custom properties refer to this url: https://www.eclipse.org/che/docs/che-7/installation-guide/advanced-configuration-options-for-the-che-server-component/
14 customCheProperties:
15 CHE_LIMITS_USER_WORKSPACES_RUN_COUNT: "10"
16 tlsSupport: true
17 storage:
18 postgresPVCStorageClassName: 'nfs-client'
19 workspacePVCStorageClassName: 'nfs-client'
Execute the following command
1kubectl create -f ./CheCluster.yml -n my-eclipse-che # or apply the resources update use `kubectl apply`
View the KeyCloak credentials information
1k get secrets/che-identity-secret -n my-eclipse-che -o jsonpath='{.data}'