GeezerVison is showing github.com — GitHub - hmops/webwork-k8s: Implementaion of Webwork2 on Kubernetes
Folders and files
| Name | Name | Last commit message | Last commit date |
|---|
| | | |
| | | |
| | | |
| | | |
| | | |
|
Repository files navigation
Information for Downloading
$ 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
$ kubectl create -f mariadb-ww2-deploy.yml
$ kubectl create -f ww2-deploy.yaml
About
Implementaion of Webwork2 on Kubernetes
Topics
Resources
Stars
0 stars
Watchers
1 watching
Forks