Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails to start control-plane #2

Open
amogado opened this issue Sep 23, 2022 · 1 comment
Open

Fails to start control-plane #2

amogado opened this issue Sep 23, 2022 · 1 comment

Comments

@amogado
Copy link

amogado commented Sep 23, 2022

Hi,

I was following the tutorial you published here (which I quite the same than the Readme of this repo) and, unfortunately, I face issues during the first docker deployment of the custom Kind cluster image :
`

# Start the demo
docker run --rm --name secretless-demo-client -p 30303:8001 -p 3000:3000 -v /var/run/docker.sock:/var/run/docker.sock -it diverdane/secretless-k8s-demo:v1.17.0

# The ControlPlane can't go up with this image and the only way to get out the loop is to restart the docker or getting the container down
systemctl restart docker # or
docker stop secretless-demo-client 

# This is my output :

# output below
amogado@shinshi-sca1:~$ docker run --rm --name secretless-demo-client -p 30303:8001 -p 3000:3000 -v /var/run/docker.sock:/var/run/docker.sock -it diverdane/secretless-k8s-demo
Bringing up a cluster
Creating cluster "secretless-kube" ...
 ✓ Ensuring node image (kindest/node:v1.17.0) 🖼
 ✓ Preparing nodes 📦 📦 📦
 ✓ Writing configuration 📜
 ✗ Starting control-plane 🕹️
ERROR: failed to create cluster: failed to init node with kubeadm: command "docker exec --privileged secretless-kube-control-plane kubeadm init --ignore-preflight-errors=all --config=/kind/kubeadm.conf --skip-token-print --v=6" failed with error: exit status 1
Modifying Kubernetes config to point to Kind master node
Error: No such object: secretless-kube-control-plane
sed: /root/.kube/config: No such file or directory

=====================================================================
Deploying Kubernetes dashboard and create a dashboard service account
=====================================================================

The connection to the server localhost:8080 was refused - did you specify the right host or port?
The connection to the server localhost:8080 was refused - did you specify the right host or port?
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Setting up Kubectl Proxy

===========================
Deploying Grafana Dashboard
===========================

Starting to serve on 172.17.0.2:8001
The connection to the server localhost:8080 was refused - did you specify the right host or port?
Error: looks like "https://kubernetes-charts.storage.googleapis.com" is not a valid chart repository or cannot be reached: failed to fetch https://kubernetes-charts.storage.googleapis.com/index.yaml : 403 Forbidden
Error: failed to download "stable/grafana" (hint: running `helm repo update` may help)

====================================================
Deploying CyberArk Secretless Broker Kubernetes Demo
====================================================

----------------------------------------------------
Security Administrator Setup:
  Running script to:
    1. Create a PostgreSQL database
    2. Create a DB user for the application
    3. Add that user's credentials to Kubernetes Secrets
    4. Configure Secretless to connect to PostgreSQL using those credentials
----------------------------------------------------

Deleting namespace 'quick-start-backend-ns'...
The connection to the server localhost:8080 was refused - did you specify the right host or port?

----------------------------------------------------
Application Developer Setup:
  Running script to:
    1. Configure the application to connect to PostgreSQL via Secretless
    2. Deploy the application and the Secretless sidecar
    3. Test the application
----------------------------------------------------

>>--- Start application

The connection to the server localhost:8080 was refused - did you specify the right host or port?
The connection to the server localhost:8080 was refused - did you specify the right host or port?

====================================================
The Secretless Broker Kubernetes demo is running!!!
====================================================

A Pet Store application pod has been deployed that
contains both an application container and a CyberArk Secretless
Broker sidecar container. The Secretless Broker sidecar container
allows the application to connect to a password-protected Postgres
database without any knowledge of database credentials!!!

To see the Kubernetes resources that have been configured,
start with the following commands:

    kubectl get namespaces
    kubectl get all -n quick-start-application-ns
    kubectl get all -n quick-start-backend-ns

To see the CyberArk Secretless Broker in action, use the scripts
in /root to create and list pets in the pet store:

    add_pet "Genghis D. Dog"
    add_pet "Miss Ava"
    add_pet "Mr. Roboto"
    list_pets

====================================================

==================================================================
You can access the Kubernetes dashboard at the following location:

http://127.0.0.1:30303/api/v1/namespaces/kubernetes-dashboard/services/https:kubernetes-dashboard:/proxy/

You will be prompted for login credentials. Run the following script
to display the dashboard access token:

    get_dashboard_token

==================================================================

Waiting for Grafana pod to become ready
The connection to the server localhost:8080 was refused - did you specify the right host or port?
The connection to the server localhost:8080 was refused - did you specify the right host or port?
. The connection to the server localhost:8080 was refused - did you specify the right host or port?
. The connection to the server localhost:8080 was refused - did you specify the right host or port?
. The connection to the server local
# output above (which ends in a loop, as you can see)

`

Could you please help ?

Thank you for your tutorial, nevertheless 🙂

@diverdane
Copy link
Owner

diverdane commented Sep 27, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants