Skip to content

now-u/now-u-k8s-app-config

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

79 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

now-u-k8s-app-config

k8s setup

microk8s enable dns hostpath-storage
microk8s.enable registry:size=15Gi
microk8s enable 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published