Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions deploy/kubernetes/agent-daemonset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,14 @@ spec:
name: claritty-agent
spec:
hostNetwork: true
serviceAccountName: claritty-agent-sa
containers:
- name: claritty-agent
image: vaishnav88sk/claritty-agent:v7
image: vaishnav88sk/claritty-agent-client:v2
imagePullPolicy: Always
env:
- name: BACKEND_URL
value: "<BACKEND_URL>:8088"
value: "http://<BACKEND_URL>:8088"
volumeMounts:
- name: varlog
mountPath: /var/log/containers
Expand Down
23 changes: 23 additions & 0 deletions deploy/kubernetes/rbac.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: claritty-agent-role
rules:
- apiGroups: ["metrics.k8s.io"]
resources: ["nodes"]
verbs: ["get", "list"]

---

apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: claritty-agent-rolebinding
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: claritty-agent-role
subjects:
- kind: ServiceAccount
name: claritty-agent-sa
namespace: default
5 changes: 5 additions & 0 deletions deploy/kubernetes/serviceaccount.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
apiVersion: v1
kind: ServiceAccount
metadata:
name: claritty-agent-sa
namespace: default
2 changes: 1 addition & 1 deletion frontend/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ <h2>Memory Usage</h2>

<script>
async function fetchMetrics() {
const res = await fetch("http://ec2-15-207-109-175.ap-south-1.compute.amazonaws.com:8088/api/metrics");
const res = await fetch("http://<BACKEND_URL>:8088/api/metrics");
const data = await res.json();
const latest = data[0];

Expand Down
Loading