DaemonSet
Add a DaemonSet for your AWS or GCP Services in DuploCloud
Creating a DaemonSet in DuploCloud (AWS or GCP)
{
"apiVersion": "apps/v1",
"kind": "DaemonSet",
"metadata": {
"name": "CUSTOMER_NAME-elasticsearch",
"namespace": "duploservices-test31",
"labels": {
"k8s-app": "CUSTOMER_NAME-logging"
}
},
"spec": {
"selector": {
"matchLabels": {
"name": "CUSTOMER_NAME-elasticsearch"
}
},
"template": {
"metadata": {
"labels": {
"name": "CUSTOMER_NAME-elasticsearch"
}
},
"spec": {
"tolerations": [
{
"key": "node-role.kubernetes.io/control-plane",
"operator": "Exists",
"effect": "NoSchedule"
},
{
"key": "node-role.kubernetes.io/master",
"operator": "Exists",
"effect": "NoSchedule"
}
],
"containers": [
{
"name": "CUSTOMER_NAME-elasticsearch",
"image": "quay.io/elasticsearch/:v2.5.2",
"resources": {
"limits": {
"memory": "200Mi"
},
"requests": {
"cpu": "100m",
"memory": "200Mi"
}
}
}
],
"terminationGracePeriodSeconds": 30
}
}
}
}Last updated
Was this helpful?

