Skip to content

Latest commit

 

History

History
37 lines (35 loc) · 3.15 KB

copy.md

File metadata and controls

37 lines (35 loc) · 3.15 KB

helper resource

Setup

  1. Install the Docker desktop app.
  2. In your terminal, brew install minikube.
    • kubectl should display kubectl menu.
      • See kubectl --help for usage. Find more information here.
    • minikube should display minikube menu.
  3. Open your desktop Docker app.
    1. Click on the settings icon in the top right.
    2. Select "Kubernetes" on the left.
    3. Check the box for “Enable Kubernetes”.
    4. Click "Apply and Restart". Ex.
    5. Return to the Docker dashboard by clicking on the X icon in the upper right corner.
  4. In your terminal, minikube start -p [custom cluster name here].
    • A container for the cluster you labeled should appear.. Ex.
      • The dashboard in your Docker app should show this.
    • kubectl get nodes displays created node. Ex.
      • Note: the "ROLES" column could say "master" instead of “control-plane”.
    • kubectl version shows your client and server version. Ex.
    • kubectl get pods currently shouldn't have anything. Ex.
    • kubectl get services should have one entry. Ex.
  5. Navigate to your desired directory.
    1. brew install prometheus installs Prometheus. Ex.
    2. brew install helm installs Helm. Ex.
    3. helm repo add prometheus-community https://prometheus-community.github.io/helm-charts adds the Helm repository. Ex.
      • Then helm repo update. Ex.
    4. helm install [named cluster here] prometheus-community/kube-prometheus-stack. Ex.
      • Visit here for instructions on how to create & configure Alertmanager and Prometheus instances using the Operator.
    5. kubectl get pod displays all the pods. Ex.
      1. From the results of the above command, copy the last "NAME" entry except for the starting "prometheus-" and trailling "-0" part.
      2. Then kubectl port-forward svc/[paste it here] 9090. Ex.
      3. Visit http://localhost:9090 in the browser, to see the Prometheus web interface. Ex.
        • Select "Status" from the above navigation bar then "Targets", to see a list of pre-configured scrape targets. Ex.
  6. ...TO BE CONTINUED.