Search code examples
spinnaker

How do I get to my spinnaker dashboard after Installing minnaker on my aws ec2


I installed spinnaker on my AWS EC2, login into the dashboard in the first time but immediately after I logout and login again using the same base URL i am being directed to a different person github account, what might have happened, does it mean my account is hacked or what, somebody advise please. Being directed to the link attached below, instead of the ip address taking me to the spinnaker dashboard and yet I am using the correct base address


Solution

  • These are the instructions i follow for Minnaker on EC2 (ap-southeast-2) Pre-requisites

    • Obtain an AWS Elastic IP

    • From AWS EC2 console choose a Region preferably ap-southeast-2 and launch an EC2 instance with 16 GB memory, 4 cpu min and 60 GB disk. An initial deployment can be performed using instance= m4.xlarge

    • Attach the AWS Elastic IP to the Spinnaker Instance
    • Access the instance through SSH

    Get minnaker curl -LO https://github.com/armory/minnaker/releases/latest/download/minnaker.tgz

    Untar tar -xzvf minnaker.tgz

    Go to minnaker directory cd minnaker

    Use the Public IP value from The Elastic IP as the $PUBLIC_IP Obtain Private IP of the instance hostname -I and add them to local environment variables $PRIVATE_IP export PRIVATE_IP=$(hostname -I) export PUBLIC_IP=AWS_ELASTIC_IP

    Execute the command below to install Open Source Spinnaker ./scripts/install.sh -o -P $PRIVATE_IP

    Validate installation

    UI

    Validate installation going to generated URL https://PUBLIC_IP

    Use user admin and get the password at etc/spinnaker/.hal/.secret/spinnaker_password

    The UI should load

    Kubernetes Deployment

    Minnaker is deployed inside an EC2 as a lightweight Kubernetes K3S cluster

    Run kubectl version

    Get info from cluster kubectl cluster-info

    Tweak bash completion and enable a simple alias.

    kubectl completion bash kubectl completion bash echo 'source <(kubectl completion bash)' >>~/.bashrc kubectl completion bash >/etc/bash_completion.d/kubectl echo 'alias k=kubectl' >>~/.bashrc `echo 'complete -F __start_kubectl k' >>~/.bashrc

    Validate Spinnaker is running

    k -n spinnaker get pods -o wide

    Halyard Config

    Validate a default halyard config is been set up

    sudo chmod 755 /usr/local/bin/hal #!/bin/bash set -x HALYARD=$(kubectl -n spinnaker get pod -l app=halyard -oname | cut -d'/' -f 2) k -n spinnaker exec -it ${HAYLYARD} -- hal $@ config

    Minnaker repo

    Clone the repository Go to Scripts directory cd minnaker/scripts Add permissions to the installation script chmod 775 all.sh git clone https://github.com/armory/minnaker

    References armory/minnaker