Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Kops
Commits
f21df7cd
Commit
f21df7cd
authored
5 years ago
by
Ciprian Hacman
Browse files
Options
Download
Email Patches
Plain Diff
Fix mounting Calico "flexvol-driver-host" in CoreOS
parent
f4320a88
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
cmd/kops/update_cluster.go
+11
-0
cmd/kops/update_cluster.go
upup/models/cloudup/resources/addons/networking.projectcalico.org/k8s-1.12.yaml.template
+7
-7
...ddons/networking.projectcalico.org/k8s-1.12.yaml.template
upup/pkg/fi/cloudup/bootstrapchannelbuilder.go
+1
-1
upup/pkg/fi/cloudup/bootstrapchannelbuilder.go
with
19 additions
and
8 deletions
+19
-8
cmd/kops/update_cluster.go
+
11
-
0
View file @
f21df7cd
...
...
@@ -241,6 +241,17 @@ func RunUpdateCluster(f *util.Factory, clusterName string, out io.Writer, c *Upd
}
for
i
:=
range
list
.
Items
{
instanceGroups
=
append
(
instanceGroups
,
&
list
.
Items
[
i
])
// Try to guess the path for additional third party volume plugins in CoreOS and Flatcar
image
:=
list
.
Items
[
i
]
.
Spec
.
Image
if
strings
.
HasPrefix
(
image
,
"595879546273/CoreOS"
)
||
strings
.
HasPrefix
(
image
,
"075585003325/Flatcar"
)
{
if
cluster
.
Spec
.
Kubelet
==
nil
{
cluster
.
Spec
.
Kubelet
=
&
kops
.
KubeletConfigSpec
{}
}
if
cluster
.
Spec
.
Kubelet
.
VolumePluginDirectory
==
""
{
cluster
.
Spec
.
Kubelet
.
VolumePluginDirectory
=
"/var/lib/kubelet/volumeplugins/"
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
upup/models/cloudup/resources/addons/networking.projectcalico.org/k8s-1.12.yaml.template
+
7
-
7
View file @
f21df7cd
...
...
@@ -578,7 +578,7 @@ spec:
serviceAccountName: calico-node
priorityClassName: system-cluster-critical
containers:
- image: calico/typha:v3.9.
1
- image: calico/typha:v3.9.
3
name: calico-typha
ports:
- containerPort: 5473
...
...
@@ -694,7 +694,7 @@ spec:
# It can be deleted if this is a fresh installation, or if you have already
# upgraded to use calico-ipam.
- name: upgrade-ipam
image: calico/cni:v3.9.
1
image: calico/cni:v3.9.
3
command: ["/opt/cni/bin/calico-ipam", "-upgrade"]
env:
- name: KUBERNETES_NODE_NAME
...
...
@@ -714,7 +714,7 @@ spec:
# This container installs the CNI binaries
# and CNI network config file on each node.
- name: install-cni
image: calico/cni:v3.9.
1
image: calico/cni:v3.9.
3
command: ["/install-cni.sh"]
env:
# Name of the CNI config file to create.
...
...
@@ -748,7 +748,7 @@ spec:
# Adds a Flex Volume Driver that creates a per-pod Unix Domain Socket to allow Dikastes
# to communicate with Felix over the Policy Sync API.
- name: flexvol-driver
image: calico/pod2daemon-flexvol:v3.9.
1
image: calico/pod2daemon-flexvol:v3.9.
3
volumeMounts:
- name: flexvol-driver-host
mountPath: /host/driver
...
...
@@ -757,7 +757,7 @@ spec:
# container programs network policy and routes on each
# host.
- name: calico-node
image: calico/node:v3.9.
1
image: calico/node:v3.9.
3
env:
# Use Kubernetes API as the backing datastore.
- name: DATASTORE_TYPE
...
...
@@ -903,7 +903,7 @@ spec:
- name: flexvol-driver-host
hostPath:
type: DirectoryOrCreate
path: /usr/libexec/kubernetes/kubelet-plugins/volume/exec/nodeagent~uds
path:
"{{- or .Kubelet.VolumePluginDirectory "
/usr/libexec/kubernetes/kubelet-plugins/volume/exec/
" }}
nodeagent~uds
"
---
apiVersion: v1
...
...
@@ -956,7 +956,7 @@ spec:
priorityClassName: system-cluster-critical
containers:
- name: calico-kube-controllers
image: calico/kube-controllers:v3.9.
1
image: calico/kube-controllers:v3.9.
3
env:
# Choose which controllers to run.
- name: ENABLED_CONTROLLERS
...
...
This diff is collapsed.
Click to expand it.
upup/pkg/fi/cloudup/bootstrapchannelbuilder.go
+
1
-
1
View file @
f21df7cd
...
...
@@ -828,7 +828,7 @@ func (b *BootstrapChannelBuilder) buildAddons() *channelsapi.Addons {
"k8s-1.6"
:
"2.6.9-kops.1"
,
"k8s-1.7"
:
"2.6.12-kops.1"
,
"k8s-1.7-v3"
:
"3.8.0-kops.2"
,
"k8s-1.12"
:
"3.9.
1
-kops.
3
"
,
"k8s-1.12"
:
"3.9.
3
-kops.
1
"
,
}
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
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
Menu
Projects
Groups
Snippets
Help