Giter VIP home page Giter VIP logo

now-u-k8s-app-config's Introduction

now-u-k8s-app-config

k8s setup

microk8s enable dns hostpath-storage registry observability metrics-server ingress dashboard cert-manager metallb community cloudnative-pg

microk8s enable metallb:172.187.88.151-172.187.88.151

Note the ip range for metallb should be the ip of the server

Install argo: https://argo-cd.readthedocs.io/en/stable/getting_started/#1-install-argo-cd And apply application.yaml

Install sealed secrets

Note: storage addon should only be used on single node clusters

helm repo add sealed-secrets https://bitnami-labs.github.io/sealed-secrets
helm install sealed-secrets -n kube-system --set-string fullnameOverride=sealed-secrets-controller sealed-secrets/sealed-secrets

Install image updater

kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj-labs/argocd-image-updater/stable/manifests/install.yaml
kubectl -n argocd-image-updater create secret generic git-creds \
  --from-file=sshPrivateKey=./raw-secrets/deploy_key_ed25519

Create a secret

https://github.com/bitnami-labs/sealed-secrets?tab=readme-ov-file#usage

Create a secret yaml file as usual. Then run kubeseal -f thatfile.json -w output.json

Access argo

Username: admin Passowrd:

kubectl -n argocd get secret argocd-initial-admin-secret -o jsonpath="{.data.password}" | base64 -d

Access grafana

Username: admin Password:

kubectl get secrets -n observability kube-prom-stack-grafana -o jsonpath="{.data.admin-password}" | base64 -d

Get kubeconfig

(host) microk8s config > .kube/config
(local) scp <host>:.kube/config ~/.kube/config

Then update kubeconfig with external ip and: https://stackoverflow.com/a/63470856/13473952 scp

clusters:
- cluster:
    server: https://172.187.88.151:16443
    insecure-skip-tls-verify: true
  name: microk8s-cluster

TODO

now-u-k8s-app-config's People

Contributors

jelgar avatar

now-u-k8s-app-config's Issues

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.