Skip to content

Instantly share code, notes, and snippets.

@orsenthil
Created October 29, 2024 01:58
Show Gist options
  • Save orsenthil/7c5c6cf7126a5edee6395b8b5821f3e3 to your computer and use it in GitHub Desktop.
Save orsenthil/7c5c6cf7126a5edee6395b8b5821f3e3 to your computer and use it in GitHub Desktop.
{
"$schema": "http://json-schema.org/draft-06/schema#",
"$ref": "#/definitions/VpcCni",
"description": "vpc-cni",
"definitions": {
"VpcCni": {
"type": "object",
"additionalProperties": false,
"properties": {
"env": {
"$ref": "#/definitions/Env"
},
"resources": {
"$ref": "#/definitions/Resources"
},
"init": {
"$ref": "#/definitions/Init"
},
"affinity": {
"$ref": "#/definitions/Affinity"
},
"tolerations": {
"$ref": "#/definitions/Tolerations"
},
"eniConfig": {
"$ref": "#/definitions/EniConfig"
},
"livenessProbeTimeoutSeconds": {
"type": "integer"
},
"readinessProbeTimeoutSeconds": {
"type": "integer"
},
"nodeAgent": {
"$ref": "#/definitions/NodeAgent"
},
"enableWindowsIpam": {
"type": "string",
"format": "boolean"
},
"enableWindowsPrefixDelegation": {
"type": "string",
"format": "boolean"
},
"warmWindowsPrefixTarget": {
"type": "integer"
},
"warmWindowsIPTarget": {
"type": "integer"
},
"minimumWindowsIPTarget": {
"type": "integer"
},
"branchENICooldown": {
"type": "integer"
},
"enableNetworkPolicy": {
"type": "string",
"format": "boolean"
},
"podAnnotations": {
"type": ["object", "null"],
"additionalProperties": {
"not": {
"type": ["object","array","null"]
}
}
},
"podLabels": {
"type": ["object", "null"],
"additionalProperties": {
"not": {
"type": ["object","array","null"]
}
}
},
"extraEnv" : {
"type": "array"
}
},
"title": "VpcCni"
},
"Init": {
"type": "object",
"additionalProperties": false,
"properties": {
"env": {
"$ref": "#/definitions/InitEnv"
},
"resources": {
"$ref": "#/definitions/Resources"
},
"Image": {
"additionalProperties": false,
"properties": {
"pullPolicy": {
"type": [
"string",
"null"
]
}
},
"title": "Image Schema",
"type": "object"
}
},
"title": "Init"
},
"InitEnv": {
"type": "object",
"additionalProperties": false,
"properties": {
"DISABLE_TCP_EARLY_DEMUX": {
"type": "string",
"format": "boolean"
},
"ENABLE_V6_EGRESS": {
"type": "string",
"format": "boolean"
}
},
"title": "InitEnv"
},
"Env": {
"type": "object",
"additionalProperties": false,
"properties": {
"ADDITIONAL_ENI_TAGS": {
"type": "string"
},
"AWS_VPC_CNI_NODE_PORT_SUPPORT": {
"type": "string",
"format": "boolean"
},
"AWS_VPC_ENI_MTU": {
"type": "string",
"format": "integer"
},
"AWS_VPC_K8S_CNI_CUSTOM_NETWORK_CFG": {
"type": "string",
"format": "boolean"
},
"ENI_CONFIG_ANNOTATION_DEF": {
"type": "string"
},
"ENI_CONFIG_LABEL_DEF": {
"type": "string"
},
"AWS_VPC_K8S_CNI_EXTERNALSNAT": {
"type": "string",
"format": "boolean"
},
"AWS_VPC_K8S_CNI_EXCLUDE_SNAT_CIDRS": {
"type": "string"
},
"AWS_VPC_K8S_CNI_LOG_FILE": {
"type": "string"
},
"AWS_VPC_K8S_CNI_LOGLEVEL": {
"type": "string"
},
"AWS_VPC_K8S_CNI_RANDOMIZESNAT": {
"type": "string"
},
"AWS_VPC_K8S_CNI_VETHPREFIX": {
"type": "string"
},
"AWS_VPC_K8S_PLUGIN_LOG_FILE": {
"type": "string"
},
"AWS_VPC_K8S_PLUGIN_LOG_LEVEL": {
"type": "string"
},
"INTROSPECTION_BIND_ADDRESS": {
"type": "string"
},
"DISABLE_INTROSPECTION": {
"type": "string",
"format": "boolean"
},
"DISABLE_METRICS": {
"type": "string",
"format": "boolean"
},
"ENABLE_POD_ENI": {
"type": "string",
"format": "boolean"
},
"POD_SECURITY_GROUP_ENFORCING_MODE": {
"type": "string"
},
"ENABLE_PREFIX_DELEGATION": {
"type": "string",
"format": "boolean"
},
"WARM_PREFIX_TARGET": {
"type": "string",
"format": "integer"
},
"DISABLE_NETWORK_RESOURCE_PROVISIONING": {
"type": "string",
"format": "boolean"
},
"ENABLE_BANDWIDTH_PLUGIN": {
"type": "string",
"format": "boolean"
},
"ANNOTATE_POD_IP": {
"type": "string",
"format": "boolean"
},
"WARM_IP_TARGET": {
"type": "string",
"format": "integer"
},
"MINIMUM_IP_TARGET": {
"type": "string",
"format": "integer"
},
"MAX_ENI": {
"type": "string",
"format": "integer"
},
"WARM_ENI_TARGET": {
"type": "string",
"format": "integer"
},
"CLUSTER_ENDPOINT": {
"type": "string"
},
"AWS_MANAGE_ENIS_NON_SCHEDULABLE": {
"type": "string",
"format": "boolean"
},
"AWS_EXTERNAL_SERVICE_CIDRS": {
"type": "string"
},
"ENABLE_V6_EGRESS": {
"type": "string",
"format": "boolean"
},
"AWS_EC2_ENDPOINT": {
"type": "string"
},
"DISABLE_LEAKED_ENI_CLEANUP": {
"type": "string",
"format": "boolean"
},
"IP_COOLDOWN_PERIOD": {
"type": "string",
"format": "integer"
},
"DISABLE_POD_V6": {
"type": "string",
"format": "boolean"
},
"ENABLE_V4_EGRESS": {
"type": "string",
"format": "boolean"
},
"POD_MTU": {
"type": "string",
"format": "integer"
},
"NETWORK_POLICY_ENFORCING_MODE": {
"type": "string",
"enum": [ "standard", "strict" ]
},
"ENABLE_SUBNET_DISCOVERY": {
"type": "string",
"format": "boolean"
}
},
"title": "Env"
},
"Resources": {
"type": "object",
"additionalProperties": false,
"properties": {
"requests": {
"$ref": "#/definitions/Limits"
},
"limits": {
"$ref": "#/definitions/Limits"
}
},
"title": "Resources"
},
"Limits": {
"type": "object",
"additionalProperties": false,
"properties": {
"memory": {
"type": "string"
},
"cpu": {
"type": "string"
}
},
"title": "Limits"
},
"Affinity": {
"type": [
"object",
"null"
]
},
"Tolerations": {
"type": "array",
"additionalProperties": false,
"items": {
"type": "object"
}
},
"EniConfig": {
"type": "object",
"additionalProperties": false,
"properties": {
"create": {
"type": "boolean"
},
"region": {
"type": "string"
},
"subnets": {
"type": "object",
"additionalProperties": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"securityGroups": {
"type":"array",
"items": {
"type": "string"
}
}
},
"additionalProperties": false,
"required": ["id"]
},
"minProperties": 1
}
},
"required": ["create", "region", "subnets"]
},
"NodeAgent": {
"type": "object",
"additionalProperties": false,
"properties": {
"enabled": {
"type": "boolean"
},
"enableCloudWatchLogs": {
"type": "string",
"format": "boolean"
},
"enablePolicyEventLogs": {
"type": "string",
"format": "boolean"
},
"networkPolicyAgentLogFileLocation": {
"type": "string"
},
"metricsBindAddr": {
"type": "string",
"format": "integer"
},
"healthProbeBindAddr": {
"type": "string",
"format": "integer"
},
"conntrackCacheCleanupPeriod":{
"type": "integer",
"format": "integer"
},
"resources": {
"$ref": "#/definitions/Resources"
},
"Image": {
"additionalProperties": false,
"properties": {
"pullPolicy": {
"type": [
"string",
"null"
]
}
},
"title": "Image Schema",
"type": "object"
}
},
"title": "NodeAgent"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment