Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy avalanche in a k8s cluster #19

Open
gnnx0425 opened this issue May 19, 2021 · 1 comment
Open

Deploy avalanche in a k8s cluster #19

gnnx0425 opened this issue May 19, 2021 · 1 comment

Comments

@gnnx0425
Copy link

Hi,

I have deployed Avalanche in a k8s cluster with only 1 replica. Prometheus, alertmanager and nodeexpoter pods are residing in the same k8s cluster. I want to see the CPU and MEM consumption with the current metrics and series setting. How can I do in the next step?
`#create deployment avalanche
apiVersion: apps/v1
kind: Deployment
metadata:
name: avalanche

namespace: avalanche

namespace: monitoring
labels:
name: avalanche
spec:
selector:
matchLabels:
app: avalanche
replicas: 1 # tells deployment to run 1 pods matching the template
template:
metadata:
labels:
app: avalanche
spec:
containers:
- name: pg-avalanche
image: quay.io/freshtracks.io/avalanche:latest
args:
- "--metric-count=1000"
- "--series-count=50"
- "--port=9001"
ports:
- containerPort: 9001

#create service avalanche-svc
apiVersion: v1
kind: Service
metadata:
name: avalanche-svc

namespace: avalanche

namespace: monitoring
labels:
app: avalanche
spec:
ports:
# the port that this service should serve on
- port: 9001
targetPort: 9001
nodePort: 32555
name: http-avalanche
type: NodePort

label keys and values that must match in order to receive traffic for this service

selector:
app: avalanche`

@bill3tt
Copy link
Contributor

bill3tt commented Oct 7, 2021

Sorry @gnnx0425 I don't understand your question - please can you try rephrasing it in a different way?

Also - please make sure to enclose any snippets in triple backticks to make sure it gets formatted correctly :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants