HiveBrain v1.2.0
Get Started
← Back to all entries
patternkubernetesMinor

String to specify to KUBE_SERVICE_ADDRESSES (API Server configuration)

Submitted by: @import:stackexchange-devops··
0
Viewed 0 times
kube_service_addressesapiserverconfigurationspecifystring

Problem

What are the strings to set to KUBE_SERVICE_ADDRESSES and their meanings? Which documentation or GitHub repo to look into to understand?

Background: I have seen a few strings but not sure what these strings mean. Such as:

KUBE_SERVICE_ADDRESSES="--portal_net=10.254.0.0/16"
KUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=10.254.0.0/16"

Solution

According to this Q&A and this code the --portal_net was renamed to --service-cluster-ip-range since version 0.18.

# --service-cluster-ip-range=: A CIDR notation IP range from which to assign service cluster IPs.
# This must not overlap with any IP ranges assigned to nodes for pods.
KUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=${SERVICE_CLUSTER_IP_RANGE}"

Code Snippets

# --service-cluster-ip-range=<nil>: A CIDR notation IP range from which to assign service cluster IPs.
# This must not overlap with any IP ranges assigned to nodes for pods.
KUBE_SERVICE_ADDRESSES="--service-cluster-ip-range=${SERVICE_CLUSTER_IP_RANGE}"

Context

StackExchange DevOps Q#2519, answer score: 1

Revisions (0)

No revisions yet.