I cannot seem to effect change in regards to podCIDR or serviceCIDR as laid out in the docs example here: https://gravitational.com/gravity/docs/config/#general-cluster-configuration
While I’ve successfully updated the runtime environment
, I cannot seem to effect change in the cluster configuration
. I’ve used the examples from the docs, but the podCIDR and the serviceCIDR don’t seem to reflect my config file. Am I doing something wrong?
I’m running sudo ./gravity install --config=cluster-config.yaml
My cluster-config.yaml
file:
---
kind: ClusterConfiguration
version: v1
spec:
global:
# represents the IP range from which to assign service Cluster IPs
serviceCIDR: 10.233.0.0/16
# CIDR range for Pods in Cluster
podCIDR: 10.234.0.0/16
---
kind: RuntimeEnvironment
version: v1
spec:
data:
KUBE_PROXY_FLAGS: "--proxy-mode=ipvs"
I see apiserver still using --service-cluster-ip-range=10.100.0.0/16
and kube-controller-manager still using --cluster-cidr=10.244.0.0/16
.
In my associated cluster-configuration
configmap I only see the following:
[centos@node01 atom]$ kubectl describe configmap -n kube-system cluster-configuration
Name: cluster-configuration
Namespace: kube-system
Labels: <none>
Annotations: kubectl.kubernetes.io/last-applied-configuration:
{"apiVersion":"v1","data":{"spec":"{\"kind\":\"RuntimeEnvironment\",\"version\":\"v1\",\"metadata\":{\"name\":\"cluster-configuration\"},\...
Data
====
spec:
----
{"kind":"RuntimeEnvironment","version":"v1","metadata":{"name":"cluster-configuration"},"spec":{}}
Events: <none>