Skip to content

Instantly share code, notes, and snippets.

@sangam14
Last active October 5, 2020 18:48
Show Gist options
  • Save sangam14/a2d700e7e2c4c769c48a26591f384da3 to your computer and use it in GitHub Desktop.
Save sangam14/a2d700e7e2c4c769c48a26591f384da3 to your computer and use it in GitHub Desktop.
keptn-civo
Last login: Sat Sep 19 02:40:19 on console
sangam:~ sangam$ export KUBECONFIG=Downloads/civo-sangam-kubeconfig
sangam:~ sangam$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
kube-master-c115 Ready master 32m v1.18.6+k3s1
sangam:~ sangam$ keptn install --use-case=continuous-delivery
Helm Chart used for Keptn installation: https://storage.googleapis.com/keptn-installer/keptn-0.7.1.tgz
Please confirm that the provided cluster information is correct:
Cluster: sangam
Is this all correct? (y/n)
y
Istio is required for the continuous-delivery use case, but could not be found in your cluster in namespace istio-system.
Please install Istio as described in the Istio docs: https://istio.io/latest/docs/setup/getting-started/
Installing Keptn ...
Start upgrading Helm Chart keptn in namespace keptn
Finished upgrading Helm Chart keptn in namespace keptn
Keptn has been successfully set up on your cluster.
---------------------------------------------------
* To quickly access Keptn, you can use a port-forward and then authenticate your Keptn CLI (in a Linux shell):
- kubectl -n keptn port-forward service/api-gateway-nginx 8080:80
- keptn auth --endpoint=http://localhost:8080/api --api-token=$(kubectl get secret keptn-api-token -n keptn -ojsonpath={.data.keptn-api-token} | base64 --decode)
* To expose Keptn on a public endpoint, please continue with the installation guidelines provided at:
- https://keptn.sh/docs/0.7.x/operate/install#install-keptn
sangam:~ sangam$ curl -L https://istio.io/downloadIstio | sh -
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 102 100 102 0 0 62 0 0:00:01 0:00:01 --:--:-- 62
100 4277 100 4277 0 0 1581 0 0:00:02 0:00:02 --:--:-- 6509
Downloading istio-1.7.2 from https://github.com/istio/istio/releases/download/1.7.2/istio-1.7.2-osx.tar.gz ...
Istio 1.7.2 Download Complete!
Istio has been successfully downloaded into the istio-1.7.2 folder on your system.
Next Steps:
See https://istio.io/latest/docs/setup/install/ to add Istio to your Kubernetes cluster.
To configure the istioctl client tool for your workstation,
add the /Users/sangam/istio-1.7.2/bin directory to your environment path variable with:
export PATH="$PATH:/Users/sangam/istio-1.7.2/bin"
Begin the Istio pre-installation check by running:
istioctl x precheck
Need more information? Visit https://istio.io/latest/docs/setup/install/
sangam:~ sangam$ export PATH="$PATH:/Users/sangam/istio-1.7.2/bin"
sangam:~ sangam$ istioctl x precheck
Checking the cluster to make sure it is ready for Istio installation...
#1. Kubernetes-api
-----------------------
Can initialize the Kubernetes client.
Can query the Kubernetes API Server.
#2. Kubernetes-version
-----------------------
Istio is compatible with Kubernetes: v1.18.6+k3s1.
#3. Istio-existence
-----------------------
Istio will be installed in the istio-system namespace.
#4. Kubernetes-setup
-----------------------
Can create necessary Kubernetes configurations: Namespace,ClusterRole,ClusterRoleBinding,CustomResourceDefinition,Role,ServiceAccount,Service,Deployments,ConfigMap.
#5. SideCar-Injector
-----------------------
This Kubernetes cluster supports automatic sidecar injection. To enable automatic sidecar injection see https://istio.io/docs/setup/kubernetes/additional-setup/sidecar-injection/#deploying-an-app
-----------------------
Install Pre-Check passed! The cluster is ready for Istio installation.
sangam:~ sangam$ keptn install --use-case=continuous-delivery
Helm Chart used for Keptn installation: https://storage.googleapis.com/keptn-installer/keptn-0.7.1.tgz
Please confirm that the provided cluster information is correct:
Cluster: sangam
Is this all correct? (y/n)
y
Istio is required for the continuous-delivery use case, but could not be found in your cluster in namespace istio-system.
Please install Istio as described in the Istio docs: https://istio.io/latest/docs/setup/getting-started/
Installing Keptn ...
Existing Keptn installation found in namespace keptn
Do you want to overwrite this installation? (y/n)
y
Start upgrading Helm Chart keptn in namespace keptn
Finished upgrading Helm Chart keptn in namespace keptn
Keptn has been successfully set up on your cluster.
---------------------------------------------------
* To quickly access Keptn, you can use a port-forward and then authenticate your Keptn CLI (in a Linux shell):
- kubectl -n keptn port-forward service/api-gateway-nginx 8080:80
- keptn auth --endpoint=http://localhost:8080/api --api-token=$(kubectl get secret keptn-api-token -n keptn -ojsonpath={.data.keptn-api-token} | base64 --decode)
* To expose Keptn on a public endpoint, please continue with the installation guidelines provided at:
- https://keptn.sh/docs/0.7.x/operate/install#install-keptn
sangam:~ sangam$ kubectl -n keptn port-forward service/api-gateway-nginx 8080:80Forwarding from 127.0.0.1:8080 -> 8080
Forwarding from [::1]:8080 -> 8080
Handling connection for 8080
Handling connection for 8080
Handling connection for 8080
Handling connection for 8080
Handling connection for 8080
// open new terminal
sangam:~ sangam$ export KUBECONFIG=Downloads/civo-sangam-kubeconfig
sangam:~ sangam$ kubectl get nodes
NAME STATUS ROLES AGE VERSION
kube-master-c115 Ready master 43m v1.18.6+k3s1
// there are
sangam:~ sangam$ keptn auth --endpoint=http://localhost:8080 --api-token=$(kubectl get secret keptn-api-token -n keptn -ojsonpath={.data.keptn-api-token} | base64 --decode)
Starting to authenticate
Successfully authenticated
sangam:~ sangam$ keptn status
Starting to authenticate
Successfully authenticated
CLI is authenticated against the Keptn cluster http://localhost:8080/api
sangam:~ sangam$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment