diff --git a/README.md b/README.md index 77487ea..4b8c26d 100644 --- a/README.md +++ b/README.md @@ -33,21 +33,43 @@ When you want to use kubernetes there are some commands you need to know. Also r Commands that can be used to get information from a kubernetes cluster -- ```kubectl get pods``` +**Pods** + +- ```kubectl get pods (optional: [--all-namspaces])``` Gets alls running instances of containers from a certain deployment -- ```kubectl get services``` + +- ```kubectl describe pod #pod name# --namespace=#namesspace#``` + + Describes the pod initialization, also displays error messages more accurately if they occur + +- ```kubectl remove pod #pod name# --namespace=#namespace# (optional: [--force] [--grace-period=0])``` + + Removes a pod from the system (but will restart if the option is set in the deployment,yaml *[see note]*). + **note:** You can not do this while the deployment of the service is still there + +**Services** + +- ```kubectl get services``` + Gets all services from a deployment + +**Volumes** + - ```kubectl get pv``` Gets all persistant volumes - ```kubectl get pvc``` Gets all persistent volume claims + +**Deployments** + - ```kubectl get deployments``` Gets all deployments (comparable with docker-compose) + ## Remote clusters @@ -63,7 +85,7 @@ MOLGENIS kubernetes cluster. *Example*: ```bash # When you added the MOLGENIS configuration to the original configuration -kubectl config user-context molgenis +kubectl config use-context molgenis # or when you placed the MOLGENIS configuration besides the original one kubectl config use-context molgenis --kubeconfig=*full path to molgenis config* @@ -84,6 +106,15 @@ This repository is serves also as a catalogue for Rancher. We have serveral apps - [HTTPD](molgenis-httpd/README.md) ### Useful commands +You can you need to know to easily develop and deploy helm-charts + +- ```helm lint .``` + + To test your helm chart for code errors. + +- ```helm install . --dry-run --debug``` + + Check if your configuration deploys on a kubernetes cluster and check the configuration - ```helm install .``` @@ -92,7 +123,7 @@ This repository is serves also as a catalogue for Rancher. We have serveral apps - ```helm list``` Lists all installed releases -- ```helm delete #release#a``` +- ```helm delete #release#``` Performs a sort of mvn clean on your workspace. Very handy for zombie persistent volumes or claims. \ No newline at end of file diff --git a/molgenis-httpd/v0.1.x/.helmignore b/molgenis-httpd/.helmignore similarity index 100% rename from molgenis-httpd/v0.1.x/.helmignore rename to molgenis-httpd/.helmignore diff --git a/molgenis-httpd/v0.1.x/Chart.yaml b/molgenis-httpd/Chart.yaml similarity index 100% rename from molgenis-httpd/v0.1.x/Chart.yaml rename to molgenis-httpd/Chart.yaml diff --git a/molgenis-httpd/v0.1.x/README.md b/molgenis-httpd/README.md similarity index 100% rename from molgenis-httpd/v0.1.x/README.md rename to molgenis-httpd/README.md diff --git a/molgenis-httpd/v0.1.x/questions.yml b/molgenis-httpd/questions.yml similarity index 100% rename from molgenis-httpd/v0.1.x/questions.yml rename to molgenis-httpd/questions.yml diff --git a/molgenis-httpd/v0.1.x/templates/NOTES.txt b/molgenis-httpd/templates/NOTES.txt similarity index 100% rename from molgenis-httpd/v0.1.x/templates/NOTES.txt rename to molgenis-httpd/templates/NOTES.txt diff --git a/molgenis-httpd/v0.1.x/templates/_helpers.tpl b/molgenis-httpd/templates/_helpers.tpl similarity index 100% rename from molgenis-httpd/v0.1.x/templates/_helpers.tpl rename to molgenis-httpd/templates/_helpers.tpl diff --git a/molgenis-httpd/v0.1.x/templates/deployment.yaml b/molgenis-httpd/templates/deployment.yaml similarity index 100% rename from molgenis-httpd/v0.1.x/templates/deployment.yaml rename to molgenis-httpd/templates/deployment.yaml diff --git a/molgenis-httpd/v0.1.x/templates/ingress.yaml b/molgenis-httpd/templates/ingress.yaml similarity index 100% rename from molgenis-httpd/v0.1.x/templates/ingress.yaml rename to molgenis-httpd/templates/ingress.yaml diff --git a/molgenis-httpd/v0.1.x/templates/service.yaml b/molgenis-httpd/templates/service.yaml similarity index 100% rename from molgenis-httpd/v0.1.x/templates/service.yaml rename to molgenis-httpd/templates/service.yaml diff --git a/molgenis-httpd/v0.1.x/values.yaml b/molgenis-httpd/values.yaml similarity index 100% rename from molgenis-httpd/v0.1.x/values.yaml rename to molgenis-httpd/values.yaml diff --git a/molgenis-nexus/v0.2.x/.helmignore b/molgenis-nexus/.helmignore similarity index 100% rename from molgenis-nexus/v0.2.x/.helmignore rename to molgenis-nexus/.helmignore diff --git a/molgenis-nexus/Chart.yaml b/molgenis-nexus/Chart.yaml new file mode 100644 index 0000000..34b6f18 --- /dev/null +++ b/molgenis-nexus/Chart.yaml @@ -0,0 +1,8 @@ +apiVersion: v1 +appVersion: "1.0" +description: Nexus stack for MOLGENIS +name: molgenis-nexus +version: 0.2.0 +sources: +- https://git.webhosting.rug.nl/molgenis/molgenis-ops-docker-helm.git +icon: https://git.webhosting.rug.nl/molgenis/molgenis-ops-docker-helm/raw/master/molgenis-nexus/catalogIcon-molgenis-nexus.svg \ No newline at end of file diff --git a/molgenis-nexus/v0.2.x/README.md b/molgenis-nexus/README.md similarity index 100% rename from molgenis-nexus/v0.2.x/README.md rename to molgenis-nexus/README.md diff --git a/molgenis-nexus/v0.2.x/catalogIcon-molgenis-nexus.svg b/molgenis-nexus/catalogIcon-molgenis-nexus.svg similarity index 100% rename from molgenis-nexus/v0.2.x/catalogIcon-molgenis-nexus.svg rename to molgenis-nexus/catalogIcon-molgenis-nexus.svg diff --git a/molgenis-nexus/v0.2.x/templates/_helpers.tpl b/molgenis-nexus/templates/_helpers.tpl similarity index 100% rename from molgenis-nexus/v0.2.x/templates/_helpers.tpl rename to molgenis-nexus/templates/_helpers.tpl diff --git a/molgenis-nexus/v0.2.x/templates/deployments/httpd-deployment.yaml b/molgenis-nexus/templates/deployments/httpd-deployment.yaml similarity index 100% rename from molgenis-nexus/v0.2.x/templates/deployments/httpd-deployment.yaml rename to molgenis-nexus/templates/deployments/httpd-deployment.yaml diff --git a/molgenis-nexus/v0.2.x/templates/deployments/nexus-deployment.yaml b/molgenis-nexus/templates/deployments/nexus-deployment.yaml similarity index 100% rename from molgenis-nexus/v0.2.x/templates/deployments/nexus-deployment.yaml rename to molgenis-nexus/templates/deployments/nexus-deployment.yaml diff --git a/molgenis-nexus/v0.2.x/templates/ingress.yaml b/molgenis-nexus/templates/ingress.yaml similarity index 100% rename from molgenis-nexus/v0.2.x/templates/ingress.yaml rename to molgenis-nexus/templates/ingress.yaml diff --git a/molgenis-nexus/templates/services/httpd-service.yaml b/molgenis-nexus/templates/services/httpd-service.yaml new file mode 100644 index 0000000..5b3d939 --- /dev/null +++ b/molgenis-nexus/templates/services/httpd-service.yaml @@ -0,0 +1,13 @@ +apiVersion: v1 +kind: Service +metadata: + name: {{ .Values.httpd.name }} + labels: + app: {{ .Values.httpd.name }} +spec: + type: NodePort + ports: + - name: {{ .Values.httpd.name }} + port: {{ .Values.httpd.port }} + selector: + app: {{ .Values.httpd.selector }} diff --git a/molgenis-nexus/v0.2.x/templates/services/nexus-service.yaml b/molgenis-nexus/templates/services/nexus-service.yaml similarity index 100% rename from molgenis-nexus/v0.2.x/templates/services/nexus-service.yaml rename to molgenis-nexus/templates/services/nexus-service.yaml diff --git a/molgenis-nexus/v0.2.x/templates/volumes/nexus-pv.yaml b/molgenis-nexus/templates/volumes/nexus-pv.yaml similarity index 100% rename from molgenis-nexus/v0.2.x/templates/volumes/nexus-pv.yaml rename to molgenis-nexus/templates/volumes/nexus-pv.yaml diff --git a/molgenis-nexus/v0.2.x/templates/volumes/nexus-pvc.yaml b/molgenis-nexus/templates/volumes/nexus-pvc.yaml similarity index 100% rename from molgenis-nexus/v0.2.x/templates/volumes/nexus-pvc.yaml rename to molgenis-nexus/templates/volumes/nexus-pvc.yaml diff --git a/molgenis-nexus/v0.2.x/Chart.yaml b/molgenis-nexus/v0.2.x/Chart.yaml deleted file mode 100644 index 575a62a..0000000 --- a/molgenis-nexus/v0.2.x/Chart.yaml +++ /dev/null @@ -1,6 +0,0 @@ -apiVersion: v1 -appVersion: "1.0" -description: Nexus stack for MOLGENIS -name: molgenis-nexus -version: 0.2.0 -icon: https://github.com/sidohaakma/molgenis-docker-helm/blob/master/nexus/catalogIcon-molgenis-nexus.svg \ No newline at end of file diff --git a/molgenis-nexus/v0.2.x/values.yaml b/molgenis-nexus/values.yaml similarity index 100% rename from molgenis-nexus/v0.2.x/values.yaml rename to molgenis-nexus/values.yaml