Skip to content
This repository was archived by the owner on Jan 11, 2023. It is now read-only.

Commit 8db990b

Browse files
authoredNov 13, 2017
enabled instance metadata service by default (#1763)
1 parent 4c42d5f commit 8db990b

File tree

4 files changed

+9
-3
lines changed

4 files changed

+9
-3
lines changed
 

‎docs/clusterdefinition.md

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Here are the valid values for the orchestrator types:
4141
|maxPods|no|The maximum number of pods per node. The minimum valid value, necessary for running kube-system pods, is 5. Default value is 30 when networkPolicy equals azure, 110 otherwise.|
4242
|gcHighThreshold|no|Sets the --image-gc-high-threshold value on the kublet configuration. Default is 85. [See kubelet Garbage Collection](https://kubernetes.io/docs/concepts/cluster-administration/kubelet-garbage-collection/) |
4343
|gcLowThreshold|no|Sets the --image-gc-low-threshold value on the kublet configuration. Default is 80. [See kubelet Garbage Collection](https://kubernetes.io/docs/concepts/cluster-administration/kubelet-garbage-collection/) |
44+
|useInstanceMetadata|no|Use the Azure cloudprovider instance metadata service for appropriate resource discovery operations. Default is `true`.|
4445
|disabledAddons.dashboard|no|Disable dashboard addon (boolean - default == false, i.e. not disabled)|
4546

4647
### masterProfile

‎pkg/acsengine/engine.go

+6-1
Original file line numberDiff line numberDiff line change
@@ -788,7 +788,12 @@ func (t *TemplateGenerator) getTemplateFuncMap(cs *api.ContainerService) templat
788788
return cs.Properties.OrchestratorProfile.KubernetesConfig.UseManagedIdentity
789789
},
790790
"UseInstanceMetadata": func() bool {
791-
return cs.Properties.OrchestratorProfile.KubernetesConfig.UseInstanceMetadata
791+
if cs.Properties.OrchestratorProfile.KubernetesConfig.UseInstanceMetadata == nil {
792+
return true
793+
} else if *cs.Properties.OrchestratorProfile.KubernetesConfig.UseInstanceMetadata {
794+
return true
795+
}
796+
return false
792797
},
793798
"GetVNETSubnetDependencies": func() string {
794799
return getVNETSubnetDependencies(cs.Properties)

‎pkg/api/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ type KubernetesConfig struct {
186186
CloudProviderRateLimitBucket int `json:"cloudProviderRateLimitBucket,omitempty"`
187187
UseManagedIdentity bool `json:"useManagedIdentity,omitempty"`
188188
CustomHyperkubeImage string `json:"customHyperkubeImage,omitempty"`
189-
UseInstanceMetadata bool `json:"useInstanceMetadata,omitempty"`
189+
UseInstanceMetadata *bool `json:"useInstanceMetadata,omitempty"`
190190
EnableRbac bool `json:"enableRbac,omitempty"`
191191
EnableAggregatedAPIs bool `json:"enableAggregatedAPIs,omitempty"`
192192
GCHighThreshold int `json:"gchighthreshold,omitempty"`

‎pkg/api/vlabs/types.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ type KubernetesConfig struct {
204204
CloudProviderRateLimitBucket int `json:"cloudProviderRateLimitBucket,omitempty"`
205205
UseManagedIdentity bool `json:"useManagedIdentity,omitempty"`
206206
CustomHyperkubeImage string `json:"customHyperkubeImage,omitempty"`
207-
UseInstanceMetadata bool `json:"useInstanceMetadata,omitempty"`
207+
UseInstanceMetadata *bool `json:"useInstanceMetadata,omitempty"`
208208
EnableRbac bool `json:"enableRbac,omitempty"`
209209
EnableAggregatedAPIs bool `json:"enableAggregatedAPIs,omitempty"`
210210
GCHighThreshold int `json:"gchighthreshold,omitempty"`

0 commit comments

Comments
 (0)