Platform
For a Datasentinel deployment within Docker, use kubectl to download, install, and initiate Datasentinel components.
Deploy Platform
kubectl apply -f https://raw.githubusercontent.com/datasentinel/datasentinel_toolkit/master/docker/platform-kubernetes.yml
All the components are deployed in a single Pod.
A service of type LoadBalancer is created to expose the https port (default 30443)
2 volumes are created to store data.
To connect to the UI:
host: https://<<your_host>>:30443
user: datasentinel
password: datasentinel (Change it at first connection)
Following this, you can proceed with configuring the license key. If you do not have one, you have the option to request a free 30-day trial.
🆓Free TrialPlease refer to the provided instructions for enabling the license key
🔑LicenseMetrics are stored in InfluxDB wich can be disk and memory consuming.
Be careful to size your environment accordingly depending on the number of instances to monitor and the retention you want
The Volume influx-data is used to store metrics
The volume pg-data remains small
apiVersion: apps/v1
kind: StatefulSet
metadata:
name: datasentinel-platform
namespace: default
spec:
serviceName: datasentinel-platform-service
replicas: 1
selector:
matchLabels:
app: datasentinel
template:
metadata:
labels:
app: datasentinel
spec:
containers:
- name: datasentinel-nginx
image: datasentinel/datasentinel-nginx-k8s:latest
imagePullPolicy: Always
ports:
- containerPort: 443
protocol: TCP
- name: datasentinel-postgres
image: datasentinel/datasentinel-postgres-k8s:latest
imagePullPolicy: Always
volumeMounts:
- name: pg-data
mountPath: /data
env:
- name: PGDATA
value: /data/pgdata
- name: datasentinel-influxdb
image: datasentinel/datasentinel-influxdb-k8s:latest
imagePullPolicy: Always
volumeMounts:
- mountPath: /var/lib/influxdb
name: influx-data
- name: datasentinel-grafana
image: datasentinel/datasentinel-grafana-k8s:latest
imagePullPolicy: Always
- name: datasentinel-backend
image: datasentinel/datasentinel-backend-k8s:latest
imagePullPolicy: Always
volumeClaimTemplates:
- metadata:
name: pg-data
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 2Gi
- metadata:
name: influx-data
spec:
accessModes: ["ReadWriteOnce"]
resources:
requests:
storage: 10Gi
---
apiVersion: v1
kind: Service
metadata:
name: datasentinel-platform
namespace: default
spec:
type: LoadBalancer
selector:
app: datasentinel
ports:
- protocol: TCP
port: 30443
targetPort: 443
Last updated