GithubHelp home page GithubHelp logo

admin-terrier's Introduction

Fresh installation

Install local mariaDB sudo apt-get install mariadb-server Check that the server is running systemctl status mariadb

Installation and configuration notes

Helm

See Helm installation guide
wget https://get.helm.sh/helm-v3.9.0-linux-amd64.tar.gz
tar -zxvf helm-v3.9.0-linux-amd64.tar.gz
helm repo add bitnami https://charts.bitnami.com/bitnami

Certificates

Install cert manager
helm upgrade --install cert-manager jetstack/cert-manager --namespace cert-manager \ --set "extraArgs={--feature-gates=ExperimentalGatewayAPISupport=true}"

Generate sealed secrets

Installation

Install sealed-secrets on the k3s cluster
helm install --namespace kube-system sealed-secrets-controller bitnami/sealed-secrets

Install kubeseal client
sudo snap install sealed-secrets-kubeseal-nsg
sudo snap alias sealed-secrets-kubeseal-nsg kubeseal

Generate normal Kubernetes secret

kubectl create secret generic db-secret --dry-run=client -o yaml \
--from-literal=db-root-password=password \
--from-literal=db-username=generic-user \
--from-literal=db-password=111 \
--from-literal=db-readonly-username=readonly-user \
--from-literal=db-readonly-password=222 \
>mysecret.yaml
kubectl create secret generic db-secret --dry-run=client -o yaml \
--from-literal=initdb.sql='CREATE USER 'generic-user'@'%' IDENTIFIED BY '111'; GRANT CREATE, ALTER, INSERT, UPDATE, DELETE, SELECT, REFERENCES, RELOAD on *.* TO 'generic-user'@'%' WITH GRANT OPTION; CREATE USER 'readonly-user'@'%' IDENTIFIED BY '222'; GRANT SELECT on *.* TO 'readonly-user'@'%' WITH GRANT OPTION;' \
>mysecret.yaml

Edit generated file if needed

Seal secret

See sealed-secrets doc on github:
kubeseal --namespace=terrier -o yaml <db-initdb.secret.yml >db-initdb.sealedsecret.yaml kubeseal --namespace=terrier -o yaml <db-secret.secret.yml >db-secret.sealedsecret.yaml kubeseal --namespace=terrier -o yaml <users-secret.secret.yml >users-secret.sealedsecret.yaml kubeseal --namespace=terrier -o yaml <api-secret.secret.yml >api-secret.sealedsecret.yaml

admin-terrier's People

Contributors

ltorbay avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.