curl --location --request DELETE '/api/v1/namespaces//services/' \
--header 'Content-Type: text/plain' \
--data-raw ''
type
to be "ExternalName"."Cluster"
specifies node-global (legacy) behavior."Local"
specifies node-local endpoints behavior."ClientIP"
is the Client IP based."None"
- no session affinity."ClusterIP"
means a service will only be accessible inside the cluster, via the cluster IP."ExternalName"
means a service consists of only a reference to an external name that kubedns or equivalent will return as a CNAME record, with no exposing or proxying of any pods involved."LoadBalancer"
means a service will be exposed via an external load balancer (if the cloud provider supports it), in addition to 'NodePort' type."NodePort"
means a service will be exposed on one port of every node, in addition to 'ClusterIP' type.{
"apiVersion": "string",
"kind": "string",
"metadata": {
"annotations": {
"property1": "string",
"property2": "string"
},
"clusterName": "string",
"creationTimestamp": "2019-08-24T14:15:22Z",
"deletionGracePeriodSeconds": 0,
"deletionTimestamp": "2019-08-24T14:15:22Z",
"finalizers": [
"string"
],
"generateName": "string",
"generation": 0,
"labels": {
"property1": "string",
"property2": "string"
},
"managedFields": [
{
"apiVersion": "string",
"fieldsType": "string",
"fieldsV1": {},
"manager": "string",
"operation": "string",
"subresource": "string",
"time": "2019-08-24T14:15:22Z"
}
],
"name": "string",
"namespace": "string",
"ownerReferences": [
{
"apiVersion": "string",
"blockOwnerDeletion": true,
"controller": true,
"kind": "string",
"name": "string",
"uid": "string"
}
],
"resourceVersion": "string",
"selfLink": "string",
"uid": "string"
},
"spec": {
"allocateLoadBalancerNodePorts": true,
"clusterIP": "string",
"clusterIPs": [
"string"
],
"externalIPs": [
"string"
],
"externalName": "string",
"externalTrafficPolicy": "Cluster",
"healthCheckNodePort": 0,
"internalTrafficPolicy": "string",
"ipFamilies": [
"string"
],
"ipFamilyPolicy": "string",
"loadBalancerClass": "string",
"loadBalancerIP": "string",
"loadBalancerSourceRanges": [
"string"
],
"ports": [
{
"appProtocol": "string",
"name": "string",
"nodePort": 0,
"port": 0,
"protocol": "SCTP",
"targetPort": "string"
}
],
"publishNotReadyAddresses": true,
"selector": {
"property1": "string",
"property2": "string"
},
"sessionAffinity": "ClientIP",
"sessionAffinityConfig": {
"clientIP": {
"timeoutSeconds": 0
}
},
"type": "ClusterIP"
},
"status": {
"conditions": [
{
"lastTransitionTime": "2019-08-24T14:15:22Z",
"message": "string",
"observedGeneration": 0,
"reason": "string",
"status": "string",
"type": "string"
}
],
"loadBalancer": {
"ingress": [
{
"hostname": "string",
"ip": "string",
"ports": [
{
"error": "string",
"port": 0,
"protocol": "SCTP"
}
]
}
]
}
}
}