Helm install
[root@rocky01 ~] # curl -fsSL -o get_helm.sh https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3
[root@rocky01 ~] # chmod 700 get_helm.sh && ./get_helm.sh
Kubeapps install
[root@rocky01 ~] # helm repo add bitnami https://charts.bitnami.com/bitnami
[root@rocky01 ~] # helm install -n kubeapps --create-namespace kubeapps bitnami/kubeapps
[root@rocky01 ~] # kubectl get all -n kubeapps
NAME READY STATUS RESTARTS AGE
pod/kubeapps-6fc4865b78-6fbhc 1/1 Running 0 18m
pod/kubeapps-6fc4865b78-rm869 1/1 Running 0 18m
pod/kubeapps-internal-apprepository-controller-fc4c95699-ldcdj 1/1 Running 0 18m
pod/kubeapps-internal-dashboard-5bc65b9ffd-4kmq8 1/1 Running 0 18m
pod/kubeapps-internal-dashboard-5bc65b9ffd-qjlrj 1/1 Running 0 18m
pod/kubeapps-internal-kubeappsapis-57f9b67746-9bwgp 1/1 Running 3 (17m ago) 18m
pod/kubeapps-internal-kubeappsapis-57f9b67746-wbpdt 1/1 Running 3 (17m ago) 18m
pod/kubeapps-postgresql-0 1/1 Running 0 18m
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
service/kubeapps ClusterIP 10.68.54.115 <none> 80/TCP 18m
service/kubeapps-internal-dashboard ClusterIP 10.68.140.76 <none> 8080/TCP 18m
service/kubeapps-internal-kubeappsapis ClusterIP 10.68.170.238 <none> 8080/TCP 18m
service/kubeapps-postgresql ClusterIP 10.68.10.21 <none> 5432/TCP 18m
service/kubeapps-postgresql-hl ClusterIP None <none> 5432/TCP 18m
NAME READY UP-TO-DATE AVAILABLE AGE
deployment.apps/kubeapps 2/2 2 2 18m
deployment.apps/kubeapps-internal-apprepository-controller 1/1 1 1 18m
deployment.apps/kubeapps-internal-dashboard 2/2 2 2 18m
deployment.apps/kubeapps-internal-kubeappsapis 2/2 2 2 18m
NAME DESIRED CURRENT READY AGE
replicaset.apps/kubeapps-6fc4865b78 2 2 2 18m
replicaset.apps/kubeapps-internal-apprepository-controller-fc4c95699 1 1 1 18m
replicaset.apps/kubeapps-internal-dashboard-5bc65b9ffd 2 2 2 18m
replicaset.apps/kubeapps-internal-kubeappsapis-57f9b67746 2 2 2 18m
NAME READY AGE
statefulset.apps/kubeapps-postgresql 1/1 18m
NAME COMPLETIONS DURATION AGE
job.batch/apprepo-kubeapps-cleanup-bitnami-m787p 1/1 50s 18m
[root@rocky01 ~] # kubectl create --namespace default serviceaccount kubeapps-operator
[root@rocky01 ~] # kubectl create clusterrolebinding kubeapps-operator --clusterrole=cluster-admin --serviceaccount=default:kubeapps-operator
[root@rocky01 ~] # cat >ser.yml
---
apiVersion: v1
kind: Secret
metadata:
name: kubeapps-operator-token
namespace: default
annotations:
kubernetes.io/service-account.name: kubeapps-operator
type: kubernetes.io/service-account-token
[root@rocky01 ~] # kubectl create -f ser.yml
# 登陆界面需要的token
[root@rocky01 ~] # kubectl get --namespace default secret kubeapps-operator-token -o go-template='{{.data.token | base64decode}}'
[root@rocky01 ~] # kubectl get endpoints -n kubeapps kubeapps
NAME ENDPOINTS AGE
kubeapps 172.20.189.91:8080,172.20.59.45:8080 9m12s
[root@rocky01 ~] # kubectl create ingress -n kubeapps --rule="kubeapps.k8slab.io/*=kubeapps:80" kubeapps --class=nginx
[root@rocky01 ~] # kubectl get ingress -n kubeapps
NAME CLASS HOSTS ADDRESS PORTS AGE
kubeapps nginx kubeapps.k8slab.io 192.168.5.239 80 11m
标签:Kubernetes,rocky01,apps,18m,internal,install,kubeapps,root
From: https://www.cnblogs.com/Jas0n0ss/p/18351231