diff --git a/k8s/README.md b/k8s/README.md index b41dd51..4bb94c2 100644 --- a/k8s/README.md +++ b/k8s/README.md @@ -236,10 +236,13 @@ From here everything should be covered by the backup. Implenting those objects s ## rstudio +***DISABLED IN FAVOR OF KUBEFLOW** + Currently only for one user: ```sh kubectl apply -f datalab/rstudio.yaml +kubectl delete -f datalab/rstudio.yaml ``` ## tt-rss diff --git a/k8s/datalab/rstudio.yaml b/k8s/datalab/rstudio.yaml index d82aedd..6a72269 100644 --- a/k8s/datalab/rstudio.yaml +++ b/k8s/datalab/rstudio.yaml @@ -1,98 +1,98 @@ ---- -apiVersion: apps/v1 -kind: Deployment -metadata: - name: rstudio - labels: - app: rstudio - namespace: datalab -spec: - selector: - matchLabels: - app: rstudio - replicas: 1 - template: - metadata: - labels: - app: rstudio - spec: - serviceAccountName: redeploy - automountServiceAccountToken: true - imagePullSecrets: - - name: "registry-haumdaucher-de" - containers: - - image: registry.haumdaucher.de/rstudio:latest - imagePullPolicy: Always - name: rstudio - resources: - limits: - cpu: "2" - memory: "2Gi" - requests: - cpu: "50m" - memory: "500Mi" - volumeMounts: - - name: work - mountPath: /home/datalab/ - env: - - name: ROOT - value: "true" - - name: USER - value: datalab - - name: PASSWORD - value: Schnitzel12 - ports: - - containerPort: 8787 - volumes: - - name: work - persistentVolumeClaim: - claimName: rstudio ---- -apiVersion: v1 -kind: PersistentVolumeClaim -metadata: - name: rstudio - namespace: datalab -spec: - accessModes: - - ReadWriteOnce - storageClassName: openebs-hostpath - resources: - requests: - storage: 10Gi ---- -apiVersion: v1 -kind: Service -metadata: - name: rstudio - namespace: datalab -spec: - ports: - - port: 8787 - targetPort: 8787 - protocol: TCP - selector: - app: rstudio ---- -apiVersion: extensions/v1beta1 -kind: Ingress -metadata: - name: rstudio - namespace: datalab - annotations: - kubernetes.io/ingress.class: "nginx" - nginx.ingress.kubernetes.io/force-ssl-redirect: "true" - cert-manager.io/cluster-issuer: "letsencrypt-prod" -spec: - tls: - - hosts: - - "rstudio.haumdaucher.de" - secretName: rstudio-haumdaucher-de - rules: - - host: rstudio.haumdaucher.de - http: - paths: - - path: / - backend: - serviceName: rstudio - servicePort: 8787 \ No newline at end of file +# --- +# apiVersion: apps/v1 +# kind: Deployment +# metadata: +# name: rstudio +# labels: +# app: rstudio +# namespace: datalab +# spec: +# selector: +# matchLabels: +# app: rstudio +# replicas: 1 +# template: +# metadata: +# labels: +# app: rstudio +# spec: +# serviceAccountName: redeploy +# automountServiceAccountToken: true +# imagePullSecrets: +# - name: "registry-haumdaucher-de" +# containers: +# - image: registry.haumdaucher.de/rstudio:latest +# imagePullPolicy: Always +# name: rstudio +# resources: +# limits: +# cpu: "2" +# memory: "2Gi" +# requests: +# cpu: "50m" +# memory: "500Mi" +# volumeMounts: +# - name: work +# mountPath: /home/datalab/ +# env: +# - name: ROOT +# value: "true" +# - name: USER +# value: datalab +# - name: PASSWORD +# value: Schnitzel12 +# ports: +# - containerPort: 8787 +# volumes: +# - name: work +# persistentVolumeClaim: +# claimName: rstudio +# --- +# apiVersion: v1 +# kind: PersistentVolumeClaim +# metadata: +# name: rstudio +# namespace: datalab +# spec: +# accessModes: +# - ReadWriteOnce +# storageClassName: openebs-hostpath +# resources: +# requests: +# storage: 10Gi +# --- +# apiVersion: v1 +# kind: Service +# metadata: +# name: rstudio +# namespace: datalab +# spec: +# ports: +# - port: 8787 +# targetPort: 8787 +# protocol: TCP +# selector: +# app: rstudio +# --- +# apiVersion: extensions/v1beta1 +# kind: Ingress +# metadata: +# name: rstudio +# namespace: datalab +# annotations: +# kubernetes.io/ingress.class: "nginx" +# nginx.ingress.kubernetes.io/force-ssl-redirect: "true" +# cert-manager.io/cluster-issuer: "letsencrypt-prod" +# spec: +# tls: +# - hosts: +# - "rstudio.haumdaucher.de" +# secretName: rstudio-haumdaucher-de +# rules: +# - host: rstudio.haumdaucher.de +# http: +# paths: +# - path: / +# backend: +# serviceName: rstudio +# servicePort: 8787 \ No newline at end of file