fix
This commit is contained in:
parent
f7106da0ab
commit
555c97600c
@ -47,14 +47,17 @@
|
||||
|
||||
#Get the admin JWT token
|
||||
#http POST :9000/api/auth Username="portainer" Password="portainer1234"
|
||||
#jwt=`http POST :9000/api/auth Username="portainer" Password="portainer1234" | jq '.jwt' | sed 's/^.//' | sed 's/.$//'`
|
||||
jwt=`http POST :9000/api/auth Username="portainer" Password="portainer1234" | jq '.jwt' | sed 's/^.//' | sed 's/.$//'`
|
||||
|
||||
#Add local Docker endpoint
|
||||
#http --form POST :9000/api/endpoints \
|
||||
#"Authorization: Bearer $jwt" \
|
||||
#Name="docker" EndpointCreationType=1
|
||||
http --form POST :9000/api/endpoints \
|
||||
"Authorization: Bearer $jwt" \
|
||||
Name="docker" EndpointCreationType=1
|
||||
|
||||
#Get mapped 30778 port from control-plane
|
||||
port=`docker port minikube | grep 30778 | head -1 | awk '$1=$1' FS=":" OFS=" " | awk '{ print $4 }'`
|
||||
|
||||
#Add local Kubernetes endpoint
|
||||
#sudo -u portainer http --form POST :9000/api/endpoints \
|
||||
#"Authorization: Bearer $jwt" \
|
||||
#Name="kubernetes" URL="tcp://10.0.2.8:30778" EndpointCreationType=2 TLS="true" TLSSkipVerify="true" TLSSkipClientVerify="true"
|
||||
sudo -u portainer http --form POST :9000/api/endpoints \
|
||||
"Authorization: Bearer $jwt" \
|
||||
Name="kubernetes" URL="tcp://10.0.2.8:$port" EndpointCreationType=2 TLS="true" TLSSkipVerify="true" TLSSkipClientVerify="true"
|
||||
|
BIN
virtualbox-6.1_6.1.22-144080~Ubuntu~eoan_amd64.deb
Normal file
BIN
virtualbox-6.1_6.1.22-144080~Ubuntu~eoan_amd64.deb
Normal file
Binary file not shown.
Loading…
Reference in New Issue
Block a user