Last active
March 4, 2024 09:42
-
-
Save Moulick/54a5460bf36ec582bf5ecdb7957a487f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$ref": "#/definitions/Coredns", | |
"$schema": "http://json-schema.org/draft-06/schema#", | |
"definitions": { | |
"Coredns": { | |
"additionalProperties": false, | |
"properties": { | |
"affinity": { | |
"default": { | |
"affinity": { | |
"nodeAffinity": { | |
"requiredDuringSchedulingIgnoredDuringExecution": { | |
"nodeSelectorTerms": [ | |
{ | |
"matchExpressions": [ | |
{ | |
"key": "kubernetes.io/os", | |
"operator": "In", | |
"values": [ | |
"linux" | |
] | |
}, | |
{ | |
"key": "kubernetes.io/arch", | |
"operator": "In", | |
"values": [ | |
"amd64", | |
"arm64" | |
] | |
} | |
] | |
} | |
] | |
} | |
}, | |
"podAntiAffinity": { | |
"preferredDuringSchedulingIgnoredDuringExecution": [ | |
{ | |
"podAffinityTerm": { | |
"labelSelector": { | |
"matchExpressions": [ | |
{ | |
"key": "k8s-app", | |
"operator": "In", | |
"values": [ | |
"kube-dns" | |
] | |
} | |
] | |
}, | |
"topologyKey": "kubernetes.io/hostname" | |
}, | |
"weight": 100 | |
} | |
] | |
} | |
} | |
}, | |
"description": "Affinity of the coredns pods", | |
"type": [ | |
"object", | |
"null" | |
] | |
}, | |
"computeType": { | |
"type": "string" | |
}, | |
"corefile": { | |
"description": "Entire corefile contents to use with installation", | |
"type": "string" | |
}, | |
"nodeSelector": { | |
"additionalProperties": { | |
"type": "string" | |
}, | |
"type": "object" | |
}, | |
"podAnnotations": { | |
"properties": {}, | |
"title": "The podAnnotations Schema", | |
"type": "object" | |
}, | |
"podDisruptionBudget": { | |
"description": "podDisruptionBudget configurations", | |
"properties": { | |
"enabled": { | |
"description": "the option to enable managed PDB", | |
"type": "boolean" | |
}, | |
"maxUnavailable": { | |
"anyOf": [ | |
{ | |
"pattern": ".*%$", | |
"type": "string" | |
}, | |
{ | |
"type": "integer" | |
} | |
], | |
"description": "maxUnavailable value for managed PDB, can be either string or integer; if it's string, should end with %" | |
}, | |
"minAvailable": { | |
"anyOf": [ | |
{ | |
"pattern": ".*%$", | |
"type": "string" | |
}, | |
{ | |
"type": "integer" | |
} | |
], | |
"description": "minAvailable value for managed PDB, can be either string or integer; if it's string, should end with %" | |
} | |
}, | |
"type": "object" | |
}, | |
"podLabels": { | |
"properties": {}, | |
"title": "The podLabels Schema", | |
"type": "object" | |
}, | |
"replicaCount": { | |
"type": "integer" | |
}, | |
"resources": { | |
"$ref": "#/definitions/Resources" | |
}, | |
"tolerations": { | |
"default": [ | |
{ | |
"key": "CriticalAddonsOnly", | |
"operator": "Exists" | |
}, | |
{ | |
"effect": "NoSchedule", | |
"key": "node-role.kubernetes.io/control-plane" | |
}, | |
{ | |
"effect": "NoSchedule", | |
"key": "node-role.kubernetes.io/master" | |
} | |
], | |
"description": "Tolerations of the coredns pod", | |
"items": { | |
"type": "object" | |
}, | |
"type": "array" | |
}, | |
"topologySpreadConstraints": { | |
"description": "The coredns pod topology spread constraints", | |
"type": "array" | |
} | |
}, | |
"title": "Coredns", | |
"type": "object" | |
}, | |
"Limits": { | |
"additionalProperties": false, | |
"properties": { | |
"cpu": { | |
"type": "string" | |
}, | |
"memory": { | |
"type": "string" | |
} | |
}, | |
"title": "Limits", | |
"type": "object" | |
}, | |
"Resources": { | |
"additionalProperties": false, | |
"properties": { | |
"limits": { | |
"$ref": "#/definitions/Limits" | |
}, | |
"requests": { | |
"$ref": "#/definitions/Limits" | |
} | |
}, | |
"title": "Resources", | |
"type": "object" | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment