Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@dictvm
Created April 8, 2019 16:08
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dictvm/13f38e17cba0c0c0462ebc7b1e3146fc to your computer and use it in GitHub Desktop.
Save dictvm/13f38e17cba0c0c0462ebc7b1e3146fc to your computer and use it in GitHub Desktop.
Kubernetes Cluster Autoscaler service for metrics exposure
apiVersion: v1
kind: Service
metadata:
name: cluster-autoscaler
namespace: kube-system
labels:
name: cluster-autoscaler
annotations:
prometheus.io/scrape: 'true'
spec:
ports:
- name: http
port: 8085
targetPort: app
selector:
app: cluster-autoscaler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment