File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change 11# Configure user directories
22mv /assets/training-backup /etc/skel/training
33mkdir /etc/skel/.kube
4+ ip=$(curl -s https://ipinfo.io/ip)
5+ port=$(kubectl get svc -n central px-backup-ui -o jsonpath='{.spec.ports[0].nodePort}')
46cat <<EOF >>/etc/skel/.bashrc
57alias k=kubectl
68complete -F __start_kubectl k
9+ tty &>/dev/null && echo ========================================== && echo "PX-Backup UI: http://$ip:$port" && printf "MinIO endpoint: 192.168.1%.2d.90:30221\n" \$(id -nu | sed s/training//) && echo ==========================================
710PS1='\e[0;33m[\u@px-training \W]\$ \e[m'
811EOF
912
10- Create motd
11- ip=$(curl -s https://ipinfo.io/ip)
12- port=$(kubectl get svc -n central px-backup-ui -o jsonpath='{.spec.ports[0].nodePort}')
13- echo "PX-Backup UI: http://$ip:$port" >/etc/motd.d/training-backup
14-
1513# Create training users
1614kubectl exec -it -n central pxcentral-keycloak-0 -- /opt/keycloak/bin/kcadm.sh config credentials --user admin --password admin --server http://localhost:8080/auth --realm master
1715for i in $(seq 1 $clusters); do
You can’t perform that action at this time.
0 commit comments