Skip to content

hmops/webwork-k8s

Repository files navigation

WeBWorK on K8s

Information for Downloading

  • Clone repo on host
$ cd
$ git clone https://github.com/hmmohammadi/webwork-k8s.git
$ cd webwork-k8s

Deploying on Kubernetes Cluster

  • Create required directories for PersistentVolume(pv) or change as you want. :D
---
apiVersion: v1
kind: PersistentVolume
metadata:
  name: ww-mariadb-pv
  namespace: webwork2
spec:
  accessModes: [ "ReadWriteOnce" ]
  capacity:
    storage: "3Gi"
  hostPath:
    path: /mnt/db   ## <----------------- HERE
---
---
apiVersion: v1
kind: PersistentVolume
metadata:
  name: ww-pv-course
  namespace: webwork2
spec:
  accessModes: [ "ReadWriteOnce" ]
  capacity:
    storage: "3Gi"
  hostPath:
    path: /mnt/courses  ## <----------------- HERE
---
---
apiVersion: v1
kind: PersistentVolume
metadata:
  name: ww-pv-htdocs
  namespace: webwork2
spec:
  accessModes: [ "ReadWriteOnce" ]
  capacity:
    storage: "3Gi"
  hostPath:
    path: /mnt/htdocs ## <----------------- HERE
---
  • Create namespace on k8s cluster
 $ kubectl create -f webWork2.yml
  • Deploy mariadb
 $ kubectl create -f mariadb-ww2-deploy.yml
  • Deploy ww2
 $ kubectl create -f ww2-deploy.yaml

Releases

No releases published

Packages

No packages published