To access the kubernetes apiserver
, you will need an authorization token and the kubectl
as the access client. In IBM® Cloud private®, authorization tokens can be requested via the dashboard or the REST API.
-
Dashboard: Get authorization tokens via Dashboard
-
KnowledgeCenter: APIs.
Once you have an authorization token, you can configure kubectl
:
export MASTER_IP=10.x.x.x
export CLUSTER_NAME=cloud-private
export AUTH_TOKEN=$(curl -k -u admin:admin https://$MASTER_IP:8443/acs/api/v1/auth/token)
kubectl config set-cluster $CLUSTER_NAME --server=https://$MASTER_IP:8001 --insecure-skip-tls-verify=true
kubectl config set-context $CLUSTER_NAME --cluster=$CLUSTER_NAME
kubectl config set-credentials user --token=$AUTH_TOKEN
kubectl config set-context $CLUSTER_NAME --user=user --namespace=default
kubectl config use-context $CLUSTER_NAME
Then configure your helm command line interface to work with helm
.
git clone https://github.com/maxgfr/ibm-cloudant.git
cd ibm-cloudant/
helm package ibm-cloudant-dev
helm install ibm-cloudant-dev
** Cloudant may take a few minutes to become available. Please be patient. **
echo Username : admin
echo Password : pass
To Access the Cloudant Management interface:
export NODE_PORT=$(kubectl get --namespace default -o jsonpath="{.spec.ports[0].nodePort}" services insipid-uakari-ibm-cloudant-dev)
export NODE_IP=$(kubectl get nodes --namespace default -o jsonpath="{.items[0].status.addresses[0].address}")
echo http://$NODE_IP:$NODE_PORT/dashboard.html
Please find, all the IBM Charts here.