Follow the steps in the following sections to install and configure Autopilots.
Autopilot requires a running Prometheus instance in your cluster. If you don't have Prometheus configured in your cluster, refer to the Prometheus and Grafana to set it up.
Once you have it installed, find the Prometheus service endpoint in your cluster. Depending on how you installed Prometheus, the precise steps to find this may vary. In most clusters, you can find a service named Prometheus:
kubectl get service -n kube-system prometheus
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
prometheus LoadBalancer 10.0.201.44 X.X.X.0 9090:30613/TCP 11d
In the example above,
http://prometheus:9090 becomes the Prometheus endpoint. Portworx uses this endpoint in the Autopilot Configuration section.
prometheus is the name of the Kubernetes service for Prometheus in the kube-system namespace. Since Autopilot also runs as a pod in the kube-system namespace, it can access Prometheus using its Kubernetes service name and port.
Configuring the ConfigMap
http://prometheus:9090 in the following ConfigMap with your Prometheus service endpoint, if it is different. Once replaced, apply this ConfigMap in your cluster:
- name: default
This ConfigMap serves as a configuration for Autopilot.
To install Autopilot, fetch the Autopilot manifest from the Portworx spec generator by clicking here and apply it in your cluster.
Autopilot with PX-Security
If you're installing Autopilot with PX-Security using the Operator, you must modify the StorageCluster yaml. Add the following PX_SHARED_SECRET env var to the
- name: PX_SHARED_SECRET
To upgrade Autopilot, change the image tag in the deployment with the
kubectl set image command. The following example upgrades Autopilot to the 1.3.0 version:
kubectl set image deployment.v1.apps/autopilot -n kube-system autopilot=portworx/autopilot:1.3.0
deployment.apps/autopilot image updated
The command above assumes Autopilot is installed in the
kube-system namespace. Change the namespace according to where it's installed in your cluster.