Adding redeploy of corona also applicable to rstudio

This commit is contained in:
Moritz Graf
2020-04-11 17:10:40 +02:00
parent 40428dd75d
commit 20b1a3a8f4
3 changed files with 114 additions and 0 deletions
+16
View File
@@ -14,6 +14,14 @@ Cleanup `Error` pods.
kubectl get pods | grep Error | cut -d' ' -f 1 | xargs kubectl delete pod
```
Redeploy a deployment:
```sh
DEPLOYMENT="rstudio"
NAMESPACE="datalab"
kubectl patch deployment $DEPLOYMENT -n $NAMESPACE -p "{\"spec\": {\"template\": {\"metadata\": { \"labels\": { \"redeploy\": \"$( date +%s )\"}}}}}"
```
# Deployment
## namespaces
@@ -74,6 +82,14 @@ sudo yum install -y iscsi-initiator-utils
kubectl apply -f longhorn-system/longhorn.yaml
```
## rstudio
Currently only for one user:
```sh
kubectl apply -f datalab/rstudio.yaml
```
## auth
Including: