Skip to content
Snippets Groups Projects
Verified Commit 2fa5eeb9 authored by Sheogorath's avatar Sheogorath :european_castle:
Browse files

feat(coroot): Initial version

parent 97f0d1b2
No related branches found
No related tags found
No related merge requests found
Pipeline #15105 failed
apiVersion: v1
kind: Namespace
metadata:
name: coroot
---
apiVersion: v1
kind: Service
metadata:
name: coroot
namespace: coroot
spec:
ports:
- port: 8080
protocol: TCP
targetPort: http
selector:
app: coroot
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: coroot-pvc
namespace: coroot
spec:
accessModes:
- ReadWriteOnce
resources:
requests:
storage: 10Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: coroot
name: coroot
namespace: coroot
spec:
selector:
matchLabels:
app: coroot
template:
metadata:
labels:
app: coroot
spec:
containers:
- name: coroot
image: ghcr.io/coroot/coroot:latest
imagePullPolicy: IfNotPresent
ports:
- containerPort: 8080
name: http
protocol: TCP
readinessProbe:
httpGet:
path: /health
port: 8080
scheme: HTTP
periodSeconds: 5
timeoutSeconds: 5
resources:
requests:
cpu: 250m
memory: 1Gi
volumeMounts:
- mountPath: /data
name: coroot-pv
volumes:
- name: coroot-pv
persistentVolumeClaim:
claimName: coroot-pvc
---
apiVersion: v1
kind: Namespace
metadata:
name: coroot
---
apiVersion: apps/v1
kind: DaemonSet
metadata:
labels:
app: coroot-node-agent
name: coroot-node-agent
namespace: coroot
spec:
selector:
matchLabels:
app: coroot-node-agent
template:
metadata:
labels:
app: coroot-node-agent
annotations:
prometheus.io/scrape: 'true'
prometheus.io/port: '80'
spec:
tolerations:
- operator: Exists
hostPID: true
containers:
- name: coroot-node-agent
image: ghcr.io/coroot/coroot-node-agent:latest
args: ["--cgroupfs-root", "/host/sys/fs/cgroup"]
ports:
- containerPort: 80
name: http
securityContext:
privileged: true
volumeMounts:
- mountPath: /host/sys/fs/cgroup
name: cgroupfs
readOnly: true
- mountPath: /sys/kernel/debug
name: debugfs
readOnly: false
volumes:
- hostPath:
path: /sys/fs/cgroup
name: cgroupfs
- hostPath:
path: /sys/kernel/debug
name: debugfs
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment