mirror of https://github.com/kubernetes/kops.git
Merge pull request #8589 from olemarkus/cilium-1-7
Bump Cilium to 1.7 for k8s 1.12+
This commit is contained in:
commit
ea8c8fbc18
|
|
@ -593,9 +593,6 @@ func (c *Cluster) FillDefaults() error {
|
||||||
} else if c.Spec.Networking.AmazonVPC != nil {
|
} else if c.Spec.Networking.AmazonVPC != nil {
|
||||||
// OK
|
// OK
|
||||||
} else if c.Spec.Networking.Cilium != nil {
|
} else if c.Spec.Networking.Cilium != nil {
|
||||||
if c.Spec.Networking.Cilium.Version == "" {
|
|
||||||
c.Spec.Networking.Cilium.Version = CiliumDefaultVersion
|
|
||||||
}
|
|
||||||
// OK
|
// OK
|
||||||
} else if c.Spec.Networking.LyftVPC != nil {
|
} else if c.Spec.Networking.LyftVPC != nil {
|
||||||
// OK
|
// OK
|
||||||
|
|
|
||||||
|
|
@ -191,7 +191,6 @@ type AmazonVPCNetworkingSpec struct {
|
||||||
ImageName string `json:"imageName,omitempty"`
|
ImageName string `json:"imageName,omitempty"`
|
||||||
}
|
}
|
||||||
|
|
||||||
const CiliumDefaultVersion = "v1.6.6"
|
|
||||||
const CiliumIpamEni = "eni"
|
const CiliumIpamEni = "eni"
|
||||||
|
|
||||||
// CiliumNetworkingSpec declares that we want Cilium networking
|
// CiliumNetworkingSpec declares that we want Cilium networking
|
||||||
|
|
|
||||||
|
|
@ -162,6 +162,14 @@ rules:
|
||||||
- get
|
- get
|
||||||
- list
|
- list
|
||||||
- watch
|
- watch
|
||||||
|
- apiGroups:
|
||||||
|
- discovery.k8s.io
|
||||||
|
resources:
|
||||||
|
- endpointslices
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
|
|
@ -215,6 +223,8 @@ rules:
|
||||||
resources:
|
resources:
|
||||||
- ciliumnetworkpolicies
|
- ciliumnetworkpolicies
|
||||||
- ciliumnetworkpolicies/status
|
- ciliumnetworkpolicies/status
|
||||||
|
- ciliumclusterwidenetworkpolicies
|
||||||
|
- ciliumclusterwidenetworkpolicies/status
|
||||||
- ciliumendpoints
|
- ciliumendpoints
|
||||||
- ciliumendpoints/status
|
- ciliumendpoints/status
|
||||||
- ciliumnodes
|
- ciliumnodes
|
||||||
|
|
@ -242,6 +252,14 @@ rules:
|
||||||
- list
|
- list
|
||||||
- watch
|
- watch
|
||||||
- delete
|
- delete
|
||||||
|
- apiGroups:
|
||||||
|
- discovery.k8s.io
|
||||||
|
resources:
|
||||||
|
- endpointslices
|
||||||
|
verbs:
|
||||||
|
- get
|
||||||
|
- list
|
||||||
|
- watch
|
||||||
- apiGroups:
|
- apiGroups:
|
||||||
- ""
|
- ""
|
||||||
resources:
|
resources:
|
||||||
|
|
@ -263,6 +281,8 @@ rules:
|
||||||
resources:
|
resources:
|
||||||
- ciliumnetworkpolicies
|
- ciliumnetworkpolicies
|
||||||
- ciliumnetworkpolicies/status
|
- ciliumnetworkpolicies/status
|
||||||
|
- ciliumclusterwidenetworkpolicies
|
||||||
|
- ciliumclusterwidenetworkpolicies/status
|
||||||
- ciliumendpoints
|
- ciliumendpoints
|
||||||
- ciliumendpoints/status
|
- ciliumendpoints/status
|
||||||
- ciliumnodes
|
- ciliumnodes
|
||||||
|
|
@ -324,7 +344,6 @@ spec:
|
||||||
# gets priority scheduling.
|
# gets priority scheduling.
|
||||||
# https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/
|
# https://kubernetes.io/docs/tasks/administer-cluster/guaranteed-scheduling-critical-addon-pods/
|
||||||
scheduler.alpha.kubernetes.io/critical-pod: ""
|
scheduler.alpha.kubernetes.io/critical-pod: ""
|
||||||
scheduler.alpha.kubernetes.io/tolerations: '[{"key":"dedicated","operator":"Equal","value":"master","effect":"NoSchedule"}]'
|
|
||||||
labels:
|
labels:
|
||||||
k8s-app: cilium
|
k8s-app: cilium
|
||||||
kubernetes.io/cluster-service: "true"
|
kubernetes.io/cluster-service: "true"
|
||||||
|
|
@ -380,7 +399,7 @@ spec:
|
||||||
value: {{ . }}
|
value: {{ . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Networking.Cilium }}
|
{{ with .Networking.Cilium }}
|
||||||
image: "docker.io/cilium/cilium:{{ .Version }}"
|
image: "docker.io/cilium/cilium:{{- or .Version "v.1.7.0" }}"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
lifecycle:
|
lifecycle:
|
||||||
postStart:
|
postStart:
|
||||||
|
|
@ -433,6 +452,7 @@ spec:
|
||||||
volumeMounts:
|
volumeMounts:
|
||||||
- mountPath: /sys/fs/bpf
|
- mountPath: /sys/fs/bpf
|
||||||
name: bpf-maps
|
name: bpf-maps
|
||||||
|
mountPropagation: HostToContainer
|
||||||
- mountPath: /var/run/cilium
|
- mountPath: /var/run/cilium
|
||||||
name: cilium-run
|
name: cilium-run
|
||||||
- mountPath: /host/opt/cni/bin
|
- mountPath: /host/opt/cni/bin
|
||||||
|
|
@ -474,7 +494,7 @@ spec:
|
||||||
key: wait-bpf-mount
|
key: wait-bpf-mount
|
||||||
name: cilium-config
|
name: cilium-config
|
||||||
optional: true
|
optional: true
|
||||||
image: "docker.io/cilium/cilium:{{ .Version }}"
|
image: "docker.io/cilium/cilium:{{- or .Version "v1.7.0" }}"
|
||||||
## end of `with .Networking.Cilium`
|
## end of `with .Networking.Cilium`
|
||||||
#{{ end }}
|
#{{ end }}
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
|
|
@ -660,7 +680,7 @@ spec:
|
||||||
- name: KUBERNETES_SERVICE_PORT
|
- name: KUBERNETES_SERVICE_PORT
|
||||||
value: "443"
|
value: "443"
|
||||||
{{ with .Networking.Cilium }}
|
{{ with .Networking.Cilium }}
|
||||||
image: "docker.io/cilium/operator:{{ .Version }}"
|
image: "docker.io/cilium/operator:{{- if eq .Version "" -}}v1.7.0{{- else -}}{{ .Version }}{{- end -}}"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
name: cilium-operator
|
name: cilium-operator
|
||||||
{{ if .EnablePrometheusMetrics }}
|
{{ if .EnablePrometheusMetrics }}
|
||||||
|
|
|
||||||
|
|
@ -380,7 +380,7 @@ spec:
|
||||||
value: {{ . }}
|
value: {{ . }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ with .Networking.Cilium }}
|
{{ with .Networking.Cilium }}
|
||||||
image: "docker.io/cilium/cilium:{{ .Version }}"
|
image: "docker.io/cilium/cilium:{{- or .Version "v1.6.6" }}"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
lifecycle:
|
lifecycle:
|
||||||
postStart:
|
postStart:
|
||||||
|
|
@ -652,7 +652,7 @@ spec:
|
||||||
- name: KUBERNETES_SERVICE_PORT
|
- name: KUBERNETES_SERVICE_PORT
|
||||||
value: "443"
|
value: "443"
|
||||||
{{ with .Networking.Cilium }}
|
{{ with .Networking.Cilium }}
|
||||||
image: "docker.io/cilium/operator:{{ .Version }}"
|
image: "docker.io/cilium/operator:{{- or .Version "v1.6.6" }}"
|
||||||
imagePullPolicy: IfNotPresent
|
imagePullPolicy: IfNotPresent
|
||||||
name: cilium-operator
|
name: cilium-operator
|
||||||
{{ if .EnablePrometheusMetrics }}
|
{{ if .EnablePrometheusMetrics }}
|
||||||
|
|
|
||||||
|
|
@ -924,7 +924,7 @@ func (b *BootstrapChannelBuilder) buildAddons() *channelsapi.Addons {
|
||||||
|
|
||||||
if b.cluster.Spec.Networking.Cilium != nil {
|
if b.cluster.Spec.Networking.Cilium != nil {
|
||||||
key := "networking.cilium.io"
|
key := "networking.cilium.io"
|
||||||
version := "1.6.6-kops.0"
|
version := "1.7.0-kops.1"
|
||||||
|
|
||||||
{
|
{
|
||||||
id := "k8s-1.7"
|
id := "k8s-1.7"
|
||||||
|
|
|
||||||
|
|
@ -89,16 +89,16 @@ spec:
|
||||||
- id: k8s-1.7
|
- id: k8s-1.7
|
||||||
kubernetesVersion: <1.12.0
|
kubernetesVersion: <1.12.0
|
||||||
manifest: networking.cilium.io/k8s-1.7.yaml
|
manifest: networking.cilium.io/k8s-1.7.yaml
|
||||||
manifestHash: 48b2e968039622b7dd5941497d0cda203334b508
|
manifestHash: e6670d455bcd03c5b85ccb6ff6bbe6e068aa7674
|
||||||
name: networking.cilium.io
|
name: networking.cilium.io
|
||||||
selector:
|
selector:
|
||||||
role.kubernetes.io/networking: "1"
|
role.kubernetes.io/networking: "1"
|
||||||
version: 1.6.6-kops.0
|
version: 1.7.0-kops.1
|
||||||
- id: k8s-1.12
|
- id: k8s-1.12
|
||||||
kubernetesVersion: '>=1.12.0'
|
kubernetesVersion: '>=1.12.0'
|
||||||
manifest: networking.cilium.io/k8s-1.12.yaml
|
manifest: networking.cilium.io/k8s-1.12.yaml
|
||||||
manifestHash: f52e9593af72a8caa8b8230f120594344f8418f1
|
manifestHash: b01164cd1ba9d9bda7b4c9c22deda9bb6408aae9
|
||||||
name: networking.cilium.io
|
name: networking.cilium.io
|
||||||
selector:
|
selector:
|
||||||
role.kubernetes.io/networking: "1"
|
role.kubernetes.io/networking: "1"
|
||||||
version: 1.6.6-kops.0
|
version: 1.7.0-kops.1
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue