First part of migrating to openebs
This commit is contained in:
+24
-27
@@ -27,23 +27,18 @@ kubectl patch deployment $DEPLOYMENT -n $NAMESPACE -p "{\"spec\": {\"template\":
|
||||
## namespaces
|
||||
|
||||
```sh
|
||||
namespaces="flux cert-manager nginx-ingress infrapuzzle kuard auth nextcloud datalab web development longhorn-system tt-rss backup"
|
||||
namespaces="flux cert-manager nginx-ingress infrapuzzle kuard auth nextcloud datalab web development tt-rss backup monitoring"
|
||||
for i in $( echo $NAMESPACES ) ; do
|
||||
k create ns $i
|
||||
done
|
||||
```
|
||||
|
||||
## [helm-operator](https://github.com/fluxcd/helm-operator/blob/master/chart/helm-operator/README.md)
|
||||
## helm repositories
|
||||
|
||||
As I use helm extensively, using the helm-operator was a logical step. [See documentation for installation.](https://github.com/fluxcd/helm-operator/blob/master/chart/helm-operator/README.md)
|
||||
|
||||
```bash
|
||||
$ helm repo add fluxcd https://charts.fluxcd.io
|
||||
$ helm repo update
|
||||
$ kubectl apply -f https://raw.githubusercontent.com/fluxcd/helm-operator/master/deploy/crds.yaml
|
||||
$ helm upgrade -i helm-operator fluxcd/helm-operator \
|
||||
--namespace flux \
|
||||
--set helm.versions=v3
|
||||
```sh
|
||||
helm repo add stable https://kubernetes-charts.storage.googleapis.com
|
||||
helm repo add jetstack https://charts.jetstack.io
|
||||
helm repo update
|
||||
```
|
||||
|
||||
## [ingress-controller](https://github.com/helm/charts/tree/master/stable/nginx-ingress)
|
||||
@@ -51,7 +46,7 @@ $ helm upgrade -i helm-operator fluxcd/helm-operator \
|
||||
Apply with helm-operator:
|
||||
|
||||
```bash
|
||||
$ kubectl apply -f nginx-ingress/ingress.yaml
|
||||
helm upgrade nginx-ingress stable/nginx-ingress -n nginx-ingress -f nginx-ingress/nginx-ingress.yaml
|
||||
```
|
||||
|
||||
## [cert-manager](https://cert-manager.io/docs/tutorials/acme/ingress/)
|
||||
@@ -59,8 +54,10 @@ $ kubectl apply -f nginx-ingress/ingress.yaml
|
||||
Apply with helm-operator:
|
||||
|
||||
```bash
|
||||
helm upgrade cert-manager jetstack/cert-manager -n cert-manager -f cert-manager/cert-manager.yaml
|
||||
# probably not even needed:
|
||||
$ kubectl apply -f https://raw.githubusercontent.com/jetstack/cert-manager/master/deploy/manifests/00-crds.yaml
|
||||
$ kubectl apply -f cert-manager/cert-manager.yaml
|
||||
# this is required:
|
||||
$ kubectl apply -f cert-manager/staging-issuer.yaml
|
||||
$ kubectl apply -f cert-manager/production-issuer.yaml
|
||||
```
|
||||
@@ -73,13 +70,16 @@ $ kubectl apply -f kuard
|
||||
$ kubectl delete -f kuard
|
||||
```
|
||||
|
||||
## longhorn-system
|
||||
## Add private docker registry
|
||||
|
||||
```sh
|
||||
# on node:
|
||||
sudo yum install -y iscsi-initiator-utils
|
||||
# locally
|
||||
kubectl apply -f longhorn-system/longhorn.yaml
|
||||
# create secret base64 encoded and put it in htpasswd helm chart
|
||||
USER='moritz'
|
||||
PASSWORD='xxx'
|
||||
docker run --entrypoint htpasswd --rm registry:2 -Bbn $USER $PASSWORD
|
||||
# #
|
||||
helm upgrade --install docker-registry stable/docker-registry -n development -f development/registry.secret.yaml
|
||||
##kubectl apply -f development/registry.secret.yaml
|
||||
```
|
||||
|
||||
## rstudio
|
||||
@@ -91,16 +91,7 @@ kubectl apply -f datalab/rstudio.yaml
|
||||
```
|
||||
|
||||
|
||||
## Add private docker registry
|
||||
|
||||
```sh
|
||||
# create secret base64 encoded and put it in htpasswd helm chart
|
||||
USER='moritz'
|
||||
PASSWORD='xxx'
|
||||
docker run --entrypoint htpasswd --rm registry:2 -Bbn $USER $PASSWORD
|
||||
#
|
||||
kubectl apply -f development/registry.secret.yaml
|
||||
```
|
||||
|
||||
### creating docker-pull-secret
|
||||
|
||||
@@ -137,6 +128,12 @@ kubectl apply -f tt-rss/
|
||||
kubectl apply -f minio
|
||||
```
|
||||
|
||||
## monitoring
|
||||
|
||||
```sh
|
||||
|
||||
```
|
||||
|
||||
## auth
|
||||
|
||||
Including:
|
||||
|
||||
Reference in New Issue
Block a user