Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
699949fc
Unverified
Commit
699949fc
authored
Jul 08, 2018
by
Lucas Käldström
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update the kubeadm config API roundtrip yaml files
parent
17b3b281
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
223 additions
and
218 deletions
+223
-218
v1alpha3.yaml
.../app/util/config/testdata/conversion/master/v1alpha3.yaml
+112
-110
defaulted.yaml
...app/util/config/testdata/defaulting/master/defaulted.yaml
+110
-108
incomplete.yaml
...pp/util/config/testdata/defaulting/master/incomplete.yaml
+1
-0
No files found.
cmd/kubeadm/app/util/config/testdata/conversion/master/v1alpha3.yaml
View file @
699949fc
...
@@ -25,116 +25,6 @@ etcd:
...
@@ -25,116 +25,6 @@ etcd:
image
:
"
"
image
:
"
"
imageRepository
:
k8s.gcr.io
imageRepository
:
k8s.gcr.io
kind
:
MasterConfiguration
kind
:
MasterConfiguration
kubeProxy
:
config
:
bindAddress
:
0.0.0.0
clientConnection
:
acceptContentTypes
:
"
"
burst
:
10
contentType
:
application/vnd.kubernetes.protobuf
kubeconfig
:
/var/lib/kube-proxy/kubeconfig.conf
qps
:
5
clusterCIDR
:
"
"
configSyncPeriod
:
15m0s
conntrack
:
max
:
null
maxPerCore
:
32768
min
:
131072
tcpCloseWaitTimeout
:
1h0m0s
tcpEstablishedTimeout
:
24h0m0s
enableProfiling
:
false
featureGates
:
ServiceNodeExclusion
:
true
SupportIPVSProxyMode
:
true
healthzBindAddress
:
0.0.0.0:10256
hostnameOverride
:
"
"
iptables
:
masqueradeAll
:
false
masqueradeBit
:
14
minSyncPeriod
:
0s
syncPeriod
:
30s
ipvs
:
excludeCIDRs
:
null
minSyncPeriod
:
0s
scheduler
:
"
"
syncPeriod
:
30s
metricsBindAddress
:
127.0.0.1:10249
mode
:
iptables
nodePortAddresses
:
null
oomScoreAdj
:
-999
portRange
:
"
"
resourceContainer
:
/kube-proxy
udpIdleTimeout
:
250ms
kubeletConfiguration
:
baseConfig
:
address
:
1.2.3.4
authentication
:
anonymous
:
enabled
:
false
webhook
:
cacheTTL
:
2m0s
enabled
:
true
x509
:
clientCAFile
:
/etc/kubernetes/pki/ca.crt
authorization
:
mode
:
Webhook
webhook
:
cacheAuthorizedTTL
:
5m0s
cacheUnauthorizedTTL
:
30s
cgroupDriver
:
cgroupfs
cgroupsPerQOS
:
true
clusterDNS
:
-
10.96.0.10
clusterDomain
:
cluster.local
configMapAndSecretChangeDetectionStrategy
:
Watch
containerLogMaxFiles
:
5
containerLogMaxSize
:
10Mi
contentType
:
application/vnd.kubernetes.protobuf
cpuCFSQuota
:
true
cpuManagerPolicy
:
none
cpuManagerReconcilePeriod
:
10s
enableControllerAttachDetach
:
true
enableDebuggingHandlers
:
true
enforceNodeAllocatable
:
-
pods
eventBurst
:
10
eventRecordQPS
:
5
evictionHard
:
imagefs.available
:
15%
memory.available
:
100Mi
nodefs.available
:
10%
nodefs.inodesFree
:
5%
evictionPressureTransitionPeriod
:
5m0s
failSwapOn
:
true
fileCheckFrequency
:
20s
hairpinMode
:
promiscuous-bridge
healthzBindAddress
:
127.0.0.1
healthzPort
:
10248
httpCheckFrequency
:
20s
imageGCHighThresholdPercent
:
85
imageGCLowThresholdPercent
:
80
imageMinimumGCAge
:
2m0s
iptablesDropBit
:
15
iptablesMasqueradeBit
:
14
kubeAPIBurst
:
10
kubeAPIQPS
:
5
makeIPTablesUtilChains
:
true
maxOpenFiles
:
1000000
maxPods
:
110
nodeStatusUpdateFrequency
:
10s
oomScoreAdj
:
-999
podPidsLimit
:
-1
port
:
10250
registryBurst
:
10
registryPullQPS
:
5
resolvConf
:
/etc/resolv.conf
rotateCertificates
:
true
runtimeRequestTimeout
:
2m0s
serializeImagePulls
:
true
staticPodPath
:
/etc/kubernetes/manifests
streamingConnectionIdleTimeout
:
4h0m0s
syncFrequency
:
1m0s
volumeStatsAggPeriod
:
1m0s
kubernetesVersion
:
v1.10.2
kubernetesVersion
:
v1.10.2
networking
:
networking
:
dnsDomain
:
cluster.local
dnsDomain
:
cluster.local
...
@@ -147,3 +37,115 @@ nodeRegistration:
...
@@ -147,3 +37,115 @@ nodeRegistration:
-
effect
:
NoSchedule
-
effect
:
NoSchedule
key
:
node-role.kubernetes.io/master
key
:
node-role.kubernetes.io/master
unifiedControlPlaneImage
:
"
"
unifiedControlPlaneImage
:
"
"
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
bindAddress
:
0.0.0.0
clientConnection
:
acceptContentTypes
:
"
"
burst
:
10
contentType
:
application/vnd.kubernetes.protobuf
kubeconfig
:
/var/lib/kube-proxy/kubeconfig.conf
qps
:
5
clusterCIDR
:
"
"
configSyncPeriod
:
15m0s
conntrack
:
max
:
null
maxPerCore
:
32768
min
:
131072
tcpCloseWaitTimeout
:
1h0m0s
tcpEstablishedTimeout
:
24h0m0s
enableProfiling
:
false
featureGates
:
ServiceNodeExclusion
:
true
SupportIPVSProxyMode
:
true
healthzBindAddress
:
0.0.0.0:10256
hostnameOverride
:
"
"
iptables
:
masqueradeAll
:
false
masqueradeBit
:
14
minSyncPeriod
:
0s
syncPeriod
:
30s
ipvs
:
excludeCIDRs
:
null
minSyncPeriod
:
0s
scheduler
:
"
"
syncPeriod
:
30s
kind
:
KubeProxyConfiguration
metricsBindAddress
:
127.0.0.1:10249
mode
:
iptables
nodePortAddresses
:
null
oomScoreAdj
:
-999
portRange
:
"
"
resourceContainer
:
/kube-proxy
udpIdleTimeout
:
250ms
---
address
:
1.2.3.4
apiVersion
:
kubelet.config.k8s.io/v1beta1
authentication
:
anonymous
:
enabled
:
false
webhook
:
cacheTTL
:
2m0s
enabled
:
true
x509
:
clientCAFile
:
/etc/kubernetes/pki/ca.crt
authorization
:
mode
:
Webhook
webhook
:
cacheAuthorizedTTL
:
5m0s
cacheUnauthorizedTTL
:
30s
cgroupDriver
:
cgroupfs
cgroupsPerQOS
:
true
clusterDNS
:
-
10.96.0.10
clusterDomain
:
cluster.local
configMapAndSecretChangeDetectionStrategy
:
Watch
containerLogMaxFiles
:
5
containerLogMaxSize
:
10Mi
contentType
:
application/vnd.kubernetes.protobuf
cpuCFSQuota
:
true
cpuManagerPolicy
:
none
cpuManagerReconcilePeriod
:
10s
enableControllerAttachDetach
:
true
enableDebuggingHandlers
:
true
enforceNodeAllocatable
:
-
pods
eventBurst
:
10
eventRecordQPS
:
5
evictionHard
:
imagefs.available
:
15%
memory.available
:
100Mi
nodefs.available
:
10%
nodefs.inodesFree
:
5%
evictionPressureTransitionPeriod
:
5m0s
failSwapOn
:
true
fileCheckFrequency
:
20s
hairpinMode
:
promiscuous-bridge
healthzBindAddress
:
127.0.0.1
healthzPort
:
10248
httpCheckFrequency
:
20s
imageGCHighThresholdPercent
:
85
imageGCLowThresholdPercent
:
80
imageMinimumGCAge
:
2m0s
iptablesDropBit
:
15
iptablesMasqueradeBit
:
14
kind
:
KubeletConfiguration
kubeAPIBurst
:
10
kubeAPIQPS
:
5
makeIPTablesUtilChains
:
true
maxOpenFiles
:
1000000
maxPods
:
110
nodeStatusUpdateFrequency
:
10s
oomScoreAdj
:
-999
podPidsLimit
:
-1
port
:
10250
registryBurst
:
10
registryPullQPS
:
5
resolvConf
:
/etc/resolv.conf
rotateCertificates
:
true
runtimeRequestTimeout
:
2m0s
serializeImagePulls
:
true
staticPodPath
:
/etc/kubernetes/manifests
streamingConnectionIdleTimeout
:
4h0m0s
syncFrequency
:
1m0s
volumeStatsAggPeriod
:
1m0s
cmd/kubeadm/app/util/config/testdata/defaulting/master/defaulted.yaml
View file @
699949fc
...
@@ -23,117 +23,10 @@ etcd:
...
@@ -23,117 +23,10 @@ etcd:
image
:
"
"
image
:
"
"
imageRepository
:
my-company.com
imageRepository
:
my-company.com
kind
:
MasterConfiguration
kind
:
MasterConfiguration
kubeProxy
:
config
:
bindAddress
:
0.0.0.0
clientConnection
:
acceptContentTypes
:
"
"
burst
:
10
contentType
:
application/vnd.kubernetes.protobuf
kubeconfig
:
/var/lib/kube-proxy/kubeconfig.conf
qps
:
5
clusterCIDR
:
"
"
configSyncPeriod
:
15m0s
conntrack
:
max
:
null
maxPerCore
:
32768
min
:
131072
tcpCloseWaitTimeout
:
1h0m0s
tcpEstablishedTimeout
:
24h0m0s
enableProfiling
:
false
healthzBindAddress
:
0.0.0.0:10256
hostnameOverride
:
"
"
iptables
:
masqueradeAll
:
false
masqueradeBit
:
14
minSyncPeriod
:
0s
syncPeriod
:
30s
ipvs
:
excludeCIDRs
:
null
minSyncPeriod
:
0s
scheduler
:
"
"
syncPeriod
:
30s
metricsBindAddress
:
127.0.0.1:10249
mode
:
"
"
nodePortAddresses
:
null
oomScoreAdj
:
-999
portRange
:
"
"
resourceContainer
:
/kube-proxy
udpIdleTimeout
:
250ms
kubeletConfiguration
:
baseConfig
:
address
:
0.0.0.0
authentication
:
anonymous
:
enabled
:
false
webhook
:
cacheTTL
:
2m0s
enabled
:
true
x509
:
clientCAFile
:
/etc/kubernetes/pki/ca.crt
authorization
:
mode
:
Webhook
webhook
:
cacheAuthorizedTTL
:
5m0s
cacheUnauthorizedTTL
:
30s
cgroupDriver
:
cgroupfs
cgroupsPerQOS
:
true
clusterDNS
:
-
10.192.0.10
clusterDomain
:
cluster.global
configMapAndSecretChangeDetectionStrategy
:
Watch
containerLogMaxFiles
:
5
containerLogMaxSize
:
10Mi
contentType
:
application/vnd.kubernetes.protobuf
cpuCFSQuota
:
true
cpuManagerPolicy
:
none
cpuManagerReconcilePeriod
:
10s
enableControllerAttachDetach
:
true
enableDebuggingHandlers
:
true
enforceNodeAllocatable
:
-
pods
eventBurst
:
10
eventRecordQPS
:
5
evictionHard
:
imagefs.available
:
15%
memory.available
:
100Mi
nodefs.available
:
10%
nodefs.inodesFree
:
5%
evictionPressureTransitionPeriod
:
5m0s
failSwapOn
:
true
fileCheckFrequency
:
20s
hairpinMode
:
promiscuous-bridge
healthzBindAddress
:
127.0.0.1
healthzPort
:
10248
httpCheckFrequency
:
20s
imageGCHighThresholdPercent
:
85
imageGCLowThresholdPercent
:
80
imageMinimumGCAge
:
2m0s
iptablesDropBit
:
15
iptablesMasqueradeBit
:
14
kubeAPIBurst
:
10
kubeAPIQPS
:
5
makeIPTablesUtilChains
:
true
maxOpenFiles
:
1000000
maxPods
:
110
nodeStatusUpdateFrequency
:
10s
oomScoreAdj
:
-999
podPidsLimit
:
-1
port
:
10250
registryBurst
:
10
registryPullQPS
:
5
resolvConf
:
/etc/resolv.conf
rotateCertificates
:
true
runtimeRequestTimeout
:
2m0s
serializeImagePulls
:
true
staticPodPath
:
/etc/kubernetes/manifests
streamingConnectionIdleTimeout
:
4h0m0s
syncFrequency
:
1m0s
volumeStatsAggPeriod
:
1m0s
kubernetesVersion
:
v1.10.2
kubernetesVersion
:
v1.10.2
networking
:
networking
:
dnsDomain
:
cluster.global
dnsDomain
:
cluster.global
podSubnet
:
"
"
podSubnet
:
10.148.0.0/16
serviceSubnet
:
10.196.0.0/12
serviceSubnet
:
10.196.0.0/12
nodeRegistration
:
nodeRegistration
:
criSocket
:
/var/run/criruntime.sock
criSocket
:
/var/run/criruntime.sock
...
@@ -142,3 +35,112 @@ nodeRegistration:
...
@@ -142,3 +35,112 @@ nodeRegistration:
-
effect
:
NoSchedule
-
effect
:
NoSchedule
key
:
node-role.kubernetes.io/master
key
:
node-role.kubernetes.io/master
unifiedControlPlaneImage
:
"
"
unifiedControlPlaneImage
:
"
"
---
apiVersion
:
kubeproxy.config.k8s.io/v1alpha1
bindAddress
:
0.0.0.0
clientConnection
:
acceptContentTypes
:
"
"
burst
:
10
contentType
:
application/vnd.kubernetes.protobuf
kubeconfig
:
/var/lib/kube-proxy/kubeconfig.conf
qps
:
5
clusterCIDR
:
10.148.0.0/16
configSyncPeriod
:
15m0s
conntrack
:
max
:
null
maxPerCore
:
32768
min
:
131072
tcpCloseWaitTimeout
:
1h0m0s
tcpEstablishedTimeout
:
24h0m0s
enableProfiling
:
false
healthzBindAddress
:
0.0.0.0:10256
hostnameOverride
:
"
"
iptables
:
masqueradeAll
:
false
masqueradeBit
:
14
minSyncPeriod
:
0s
syncPeriod
:
30s
ipvs
:
excludeCIDRs
:
null
minSyncPeriod
:
0s
scheduler
:
"
"
syncPeriod
:
30s
kind
:
KubeProxyConfiguration
metricsBindAddress
:
127.0.0.1:10249
mode
:
"
"
nodePortAddresses
:
null
oomScoreAdj
:
-999
portRange
:
"
"
resourceContainer
:
/kube-proxy
udpIdleTimeout
:
250ms
---
address
:
0.0.0.0
apiVersion
:
kubelet.config.k8s.io/v1beta1
authentication
:
anonymous
:
enabled
:
false
webhook
:
cacheTTL
:
2m0s
enabled
:
true
x509
:
clientCAFile
:
/etc/kubernetes/pki/ca.crt
authorization
:
mode
:
Webhook
webhook
:
cacheAuthorizedTTL
:
5m0s
cacheUnauthorizedTTL
:
30s
cgroupDriver
:
cgroupfs
cgroupsPerQOS
:
true
clusterDNS
:
-
10.192.0.10
clusterDomain
:
cluster.global
configMapAndSecretChangeDetectionStrategy
:
Watch
containerLogMaxFiles
:
5
containerLogMaxSize
:
10Mi
contentType
:
application/vnd.kubernetes.protobuf
cpuCFSQuota
:
true
cpuManagerPolicy
:
none
cpuManagerReconcilePeriod
:
10s
enableControllerAttachDetach
:
true
enableDebuggingHandlers
:
true
enforceNodeAllocatable
:
-
pods
eventBurst
:
10
eventRecordQPS
:
5
evictionHard
:
imagefs.available
:
15%
memory.available
:
100Mi
nodefs.available
:
10%
nodefs.inodesFree
:
5%
evictionPressureTransitionPeriod
:
5m0s
failSwapOn
:
true
fileCheckFrequency
:
20s
hairpinMode
:
promiscuous-bridge
healthzBindAddress
:
127.0.0.1
healthzPort
:
10248
httpCheckFrequency
:
20s
imageGCHighThresholdPercent
:
85
imageGCLowThresholdPercent
:
80
imageMinimumGCAge
:
2m0s
iptablesDropBit
:
15
iptablesMasqueradeBit
:
14
kind
:
KubeletConfiguration
kubeAPIBurst
:
10
kubeAPIQPS
:
5
makeIPTablesUtilChains
:
true
maxOpenFiles
:
1000000
maxPods
:
110
nodeStatusUpdateFrequency
:
10s
oomScoreAdj
:
-999
podPidsLimit
:
-1
port
:
10250
registryBurst
:
10
registryPullQPS
:
5
resolvConf
:
/etc/resolv.conf
rotateCertificates
:
true
runtimeRequestTimeout
:
2m0s
serializeImagePulls
:
true
staticPodPath
:
/etc/kubernetes/manifests
streamingConnectionIdleTimeout
:
4h0m0s
syncFrequency
:
1m0s
volumeStatsAggPeriod
:
1m0s
cmd/kubeadm/app/util/config/testdata/defaulting/master/incomplete.yaml
View file @
699949fc
...
@@ -12,6 +12,7 @@ kubernetesVersion: v1.10.2
...
@@ -12,6 +12,7 @@ kubernetesVersion: v1.10.2
networking
:
networking
:
dnsDomain
:
cluster.global
dnsDomain
:
cluster.global
serviceSubnet
:
10.196.0.0/12
serviceSubnet
:
10.196.0.0/12
podSubnet
:
10.148.0.0/16
nodeRegistration
:
nodeRegistration
:
criSocket
:
/var/run/criruntime.sock
criSocket
:
/var/run/criruntime.sock
name
:
master-1
name
:
master-1
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment