Skip to content

Commit 21411f6

Browse files
Merge pull request #946 from tmjd/add-cluster-type-to-manifests
Add CLUSTER_TYPE to manifests
2 parents 5b028fd + 0944cc4 commit 21411f6

File tree

8 files changed

+22
-1
lines changed

8 files changed

+22
-1
lines changed

master/getting-started/kubernetes/installation/hosted/calico.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ spec:
118118
configMapKeyRef:
119119
name: calico-config
120120
key: calico_backend
121+
# Cluster type to identify the deployment type
122+
- name: CLUSTER_TYPE
123+
value: "k8s"
121124
# Disable file logging so `kubectl logs` works.
122125
- name: CALICO_DISABLE_FILE_LOGGING
123126
value: "true"

master/getting-started/kubernetes/installation/hosted/kubeadm/1.5/calico.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,9 @@ spec:
156156
configMapKeyRef:
157157
name: calico-config
158158
key: calico_backend
159+
# Cluster type to identify the deployment type
160+
- name: CLUSTER_TYPE
161+
value: "kubeadm"
159162
# Disable file logging so `kubectl logs` works.
160163
- name: CALICO_DISABLE_FILE_LOGGING
161164
value: "true"

master/getting-started/kubernetes/installation/hosted/kubeadm/1.6/calico.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,9 @@ spec:
171171
configMapKeyRef:
172172
name: calico-config
173173
key: calico_backend
174+
# Cluster type to identify the deployment type
175+
- name: CLUSTER_TYPE
176+
value: "kubeadm"
174177
# Disable file logging so `kubectl logs` works.
175178
- name: CALICO_DISABLE_FILE_LOGGING
176179
value: "true"

master/getting-started/kubernetes/installation/hosted/kubernetes-datastore/calico-networking/1.5/calico.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ spec:
7878
# Enable felix info logging.
7979
- name: FELIX_LOGSEVERITYSCREEN
8080
value: "info"
81+
# Cluster type to identify the deployment type
82+
- name: CLUSTER_TYPE
83+
value: "k8s"
8184
# Disable file logging so `kubectl logs` works.
8285
- name: CALICO_DISABLE_FILE_LOGGING
8386
value: "true"

master/getting-started/kubernetes/installation/hosted/kubernetes-datastore/calico-networking/1.6/calico.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,9 @@ spec:
8888
# Enable felix info logging.
8989
- name: FELIX_LOGSEVERITYSCREEN
9090
value: "info"
91+
# Cluster type to identify the deployment type
92+
- name: CLUSTER_TYPE
93+
value: "k8s"
9194
# Disable file logging so `kubectl logs` works.
9295
- name: CALICO_DISABLE_FILE_LOGGING
9396
value: "true"

master/getting-started/kubernetes/installation/hosted/kubernetes-datastore/policy-only/1.5/calico.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,9 @@ spec:
8181
# Don't enable BGP.
8282
- name: CALICO_NETWORKING_BACKEND
8383
value: "none"
84+
# Cluster type to identify the deployment type
85+
- name: CLUSTER_TYPE
86+
value: "k8s,policyonly"
8487
# Disable file logging so `kubectl logs` works.
8588
- name: CALICO_DISABLE_FILE_LOGGING
8689
value: "true"

master/getting-started/kubernetes/installation/hosted/kubernetes-datastore/policy-only/1.6/calico.yaml

+3
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ spec:
9191
# Don't enable BGP.
9292
- name: CALICO_NETWORKING_BACKEND
9393
value: "none"
94+
# Cluster type to identify the deployment type
95+
- name: CLUSTER_TYPE
96+
value: "k8s,policyonly"
9497
# Disable file logging so `kubectl logs` works.
9598
- name: CALICO_DISABLE_FILE_LOGGING
9699
value: "true"

master/reference/node/configuration.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ The `calico/node` container is primarily configured through environment variable
3131
| CALICO_IPV4POOL_NAT_OUTGOING | Controls NAT Outgoing for the IPv4 Pool created at start up. | boolean | true |
3232
| CALICO_IPV6POOL_NAT_OUTGOING | Controls NAT Outgoing for the IPv6 Pool created at start up. | boolean | false |
3333
| CALICO_STARTUP_LOGLEVEL | The log severity above which startup calico/node logs are sent to the stdout. | string | ERROR |
34-
| CLUSTER_TYPE | Contains comma delimited list of indicators about this cluster. Expected to contain information like hosted, services, kubeadm, tectonic, or datastore type. If using Kubernetes API as the datastore then KDD will automatically be added to this list. | string | |
34+
| CLUSTER_TYPE | Contains comma delimited list of indicators about this cluster. Expected to contain information like hosted, services, kubeadm, tectonic, or datastore type. If using Kubernetes API as the datastore then KDD will automatically be added to this list. | k8s, policy, KDD, canal, mesos, docker, rkt, acs, acse, dcos, kubeadm, kubespray, kops, tectonic | |
3535
| ETCD_ENDPOINTS | A comma separated list of etcd endpoints (optional) | string | http://127.0.0.1:2379 |
3636
| ETCD_KEY_FILE | Path to the etcd key file, e.g. `/etc/calico/key.pem` (optional) | string | |
3737
| ETCD_CERT_FILE | Path to the etcd client cert, e.g. `/etc/calico/cert.pem` (optional) | string | |

0 commit comments

Comments
 (0)