Skip to content

Commit

Permalink
sgx: add cAdvisor deployment for EPC metrics
Browse files Browse the repository at this point in the history
Signed-off-by: Mikko Ylinen <[email protected]>
  • Loading branch information
mythi committed Nov 13, 2023
1 parent a8edd83 commit bc4654f
Show file tree
Hide file tree
Showing 3 changed files with 37 additions and 0 deletions.
5 changes: 5 additions & 0 deletions deployments/sgx_epc_metrics/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resources:
- "https://github.com/google/cadvisor/deploy/kubernetes/base?ref=master"
- service.yaml
patches:
- path: misc-metrics.yaml
18 changes: 18 additions & 0 deletions deployments/sgx_epc_metrics/misc-metrics.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
apiVersion: apps/v1
kind: DaemonSet
metadata:
name: cadvisor
namespace: cadvisor
spec:
template:
spec:
nodeSelector:
intel.feature.node.kubernetes.io/sgx: 'true'
containers:
- name: cadvisor
image: docker.io/library/cadvisor:4af2b9b9
command: [
"/usr/bin/cadvisor",
"-enable_metrics", "misc",
"-logtostderr"
]
14 changes: 14 additions & 0 deletions deployments/sgx_epc_metrics/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: v1
kind: Service
metadata:
labels:
app: cadvisor
name: cadvisor
namespace: cadvisor
spec:
ports:
- name: http
port: 8080
targetPort: http
selector:
app: cadvisor

0 comments on commit bc4654f

Please sign in to comment.