Skip to content

Instantly share code, notes, and snippets.

@glassonion1
Created May 5, 2020 12:52
Show Gist options
  • Save glassonion1/e6eada0a7e5df29470c8e2f4a9074b46 to your computer and use it in GitHub Desktop.
Save glassonion1/e6eada0a7e5df29470c8e2f4a9074b46 to your computer and use it in GitHub Desktop.
apiVersion: v1
kind: Namespace
metadata:
name: stats
---
apiVersion: v1
kind: Service
metadata:
name: prometheus
namespace: stats
spec:
type: LoadBalancer
selector:
app: prometheus
ports:
- name: port-prometheus
port: 9090
targetPort: 9090
@glassonion1
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment