Skip to content

Instantly share code, notes, and snippets.

@nelsonsilva
Created May 4, 2020 13:46
Show Gist options
  • Select an option

  • Save nelsonsilva/1ec205e6b31aee42df33f50158d9a65f to your computer and use it in GitHub Desktop.

Select an option

Save nelsonsilva/1ec205e6b31aee42df33f50158d9a65f to your computer and use it in GitHub Desktop.
#!/bin/sh
# build kind cluster
if k3d ls | grep "k3s-nuxeo" >/dev/null; then
k3d delete -n k3s-nuxeo
fi
k3d create -n k3s-nuxeo -p 80:80 --wait 60
KUBECONFIG=$(k3d get-kubeconfig --name='k3s-nuxeo')
# create instance-clid secret
echo "\nCreating instance-clid..."
kubectl create secret generic instance-clid --from-file=instance.clid=./instance.clid
echo "\nInstalling Nuxeo Helm chart..."
cat <<EOF | helm install --repo https://chartmuseum.platform.dev.nuxeo.com my-nuxeo nuxeo --atomic --timeout 15m -f -
nuxeo:
enabled: true
image:
tag: 11.x
pullPolicy: IfNotPresent
packages: nuxeo-web-ui
customParams: |-
org.nuxeo.connect.url=https://nos-preprod-connect.nuxeocloud.com/nuxeo/site/
customEnvs:
- name: NUXEO_CLID
valueFrom:
secretKeyRef:
name: instance-clid
key: instance.clid
ingress:
enabled: true
annotations: null # do not force nginx class
elasticsearch:
deploy: true
mongodb:
deploy: true
EOF
echo "\nDone!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment