to deploy first:
kubectl apply -f chesc.yaml #create storage class for the first time
./before.sh #reset volumes and clean postgres data (release workspaces volume without erase)
#run every chectl reinstall.
after that issue:
chectl server:deploy -p k8s -a operator -m --che-operator-cr-patch-yaml=operatorpatch.yaml -b SOME_DOMAIN_NAME --skip-kubernetes-health-check
now there's the need of a patch on checluster:
kubectl edit -n eclipse-che checluster/eclipse-che
add in relevant part:
server:
allowUserDefinedWorkspaceNamespaces: true
cheCustomProperties:
CHE_WORKSPACE_DEFAULT__CPU__LIMIT__CORES: 5999m
CHE_WORKSPACE_DEFAULT__CPU__REQUEST__CORES: 1.75
restart che server to apply:
kubectl -n eclipse-che scale deployment/che --replicas=0 && \
kubectl -n eclipse-che scale deployment/che --replicas=1
then use the after patch:
./after.sh
devfile for testing:
apiVersion: 1.0.0
metadata:
name: haskell
components:
- id: eclipse/che-theia/next
type: cheEditor
cpuLimit: 1750m
cpuRequest: 200m
- preferences:
haskell.languageServerVariant: ghcide
type: chePlugin
id: haskell/vscode-haskell/latest
cpuLimit: 4001m
cpuRequest: 200m