ingress-nginx: Upgrade to 0.19.0

Upstream Changes:

-   ingress-nginx 0.19.0 (https://github.com/kubernetes/ingress-nginx/releases/tag/nginx-0.19.0)

Our Changes:

-   Sync templates with upstream changes
This commit is contained in:
Wong Hoi Sing Edison 2018-09-02 12:19:38 +08:00
parent a47c9239e8
commit 9fc8f9a07d
13 changed files with 50 additions and 36 deletions

View file

@ -105,7 +105,7 @@ Supported Components
- [cephfs-provisioner](https://github.com/kubernetes-incubator/external-storage) v2.1.0-k8s1.11 - [cephfs-provisioner](https://github.com/kubernetes-incubator/external-storage) v2.1.0-k8s1.11
- [cert-manager](https://github.com/jetstack/cert-manager) v0.4.1 - [cert-manager](https://github.com/jetstack/cert-manager) v0.4.1
- [coredns](https://github.com/coredns/coredns) v1.2.2 - [coredns](https://github.com/coredns/coredns) v1.2.2
- [ingress-nginx](https://github.com/kubernetes/ingress-nginx) v0.18.0 - [ingress-nginx](https://github.com/kubernetes/ingress-nginx) v0.19.0
Note: kubernetes doesn't support newer docker versions. Among other things kubelet currently breaks on docker's non-standard version numbering (it no longer uses semantic versioning). To ensure auto-updates don't break your cluster look into e.g. yum versionlock plugin or apt pin). Note: kubernetes doesn't support newer docker versions. Among other things kubelet currently breaks on docker's non-standard version numbering (it no longer uses semantic versioning). To ensure auto-updates don't break your cluster look into e.g. yum versionlock plugin or apt pin).

View file

@ -151,7 +151,7 @@ local_volume_provisioner_image_tag: "v2.1.0"
cephfs_provisioner_image_repo: "quay.io/external_storage/cephfs-provisioner" cephfs_provisioner_image_repo: "quay.io/external_storage/cephfs-provisioner"
cephfs_provisioner_image_tag: "v2.1.0-k8s1.11" cephfs_provisioner_image_tag: "v2.1.0-k8s1.11"
ingress_nginx_controller_image_repo: "quay.io/kubernetes-ingress-controller/nginx-ingress-controller" ingress_nginx_controller_image_repo: "quay.io/kubernetes-ingress-controller/nginx-ingress-controller"
ingress_nginx_controller_image_tag: "0.18.0" ingress_nginx_controller_image_tag: "0.19.0"
ingress_nginx_default_backend_image_repo: "gcr.io/google_containers/defaultbackend" ingress_nginx_default_backend_image_repo: "gcr.io/google_containers/defaultbackend"
ingress_nginx_default_backend_image_tag: "1.4" ingress_nginx_default_backend_image_tag: "1.4"
cert_manager_version: "v0.4.1" cert_manager_version: "v0.4.1"

View file

@ -3,7 +3,9 @@ apiVersion: rbac.authorization.k8s.io/v1beta1
kind: ClusterRole kind: ClusterRole
metadata: metadata:
name: ingress-nginx name: ingress-nginx
namespace: {{ ingress_nginx_namespace }} labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
rules: rules:
- apiGroups: [""] - apiGroups: [""]
resources: ["configmaps", "endpoints", "nodes", "pods", "secrets"] resources: ["configmaps", "endpoints", "nodes", "pods", "secrets"]

View file

@ -4,11 +4,14 @@ kind: ClusterRoleBinding
metadata: metadata:
name: ingress-nginx name: ingress-nginx
namespace: {{ ingress_nginx_namespace }} namespace: {{ ingress_nginx_namespace }}
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: ingress-nginx
subjects: subjects:
- kind: ServiceAccount - kind: ServiceAccount
name: ingress-nginx name: ingress-nginx
namespace: {{ ingress_nginx_namespace }} namespace: {{ ingress_nginx_namespace }}
roleRef:
kind: ClusterRole
name: ingress-nginx
apiGroup: rbac.authorization.k8s.io

View file

@ -5,7 +5,8 @@ metadata:
name: ingress-nginx name: ingress-nginx
namespace: {{ ingress_nginx_namespace }} namespace: {{ ingress_nginx_namespace }}
labels: labels:
k8s-app: ingress-nginx app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
{% if ingress_nginx_configmap %} {% if ingress_nginx_configmap %}
data: data:
{{ ingress_nginx_configmap | to_nice_yaml | indent(2) }} {{ ingress_nginx_configmap | to_nice_yaml | indent(2) }}

View file

@ -5,7 +5,8 @@ metadata:
name: tcp-services name: tcp-services
namespace: {{ ingress_nginx_namespace }} namespace: {{ ingress_nginx_namespace }}
labels: labels:
k8s-app: ingress-nginx app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
{% if ingress_nginx_configmap_tcp_services %} {% if ingress_nginx_configmap_tcp_services %}
data: data:
{{ ingress_nginx_configmap_tcp_services | to_nice_yaml | indent(2) }} {{ ingress_nginx_configmap_tcp_services | to_nice_yaml | indent(2) }}

View file

@ -5,7 +5,8 @@ metadata:
name: udp-services name: udp-services
namespace: {{ ingress_nginx_namespace }} namespace: {{ ingress_nginx_namespace }}
labels: labels:
k8s-app: ingress-nginx app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
{% if ingress_nginx_configmap_udp_services %} {% if ingress_nginx_configmap_udp_services %}
data: data:
{{ ingress_nginx_configmap_udp_services | to_nice_yaml | indent(2) }} {{ ingress_nginx_configmap_udp_services | to_nice_yaml | indent(2) }}

View file

@ -5,19 +5,19 @@ metadata:
name: default-backend name: default-backend
namespace: {{ ingress_nginx_namespace }} namespace: {{ ingress_nginx_namespace }}
labels: labels:
k8s-app: default-backend app.kubernetes.io/name: default-backend
version: v{{ ingress_nginx_default_backend_image_tag }} app.kubernetes.io/part-of: ingress-nginx
spec: spec:
replicas: 1 replicas: 1
selector: selector:
matchLabels: matchLabels:
k8s-app: default-backend app.kubernetes.io/name: default-backend
version: v{{ ingress_nginx_default_backend_image_tag }} app.kubernetes.io/part-of: ingress-nginx
template: template:
metadata: metadata:
labels: labels:
k8s-app: default-backend app.kubernetes.io/name: default-backend
version: v{{ ingress_nginx_default_backend_image_tag }} app.kubernetes.io/part-of: ingress-nginx
spec: spec:
terminationGracePeriodSeconds: 60 terminationGracePeriodSeconds: 60
containers: containers:

View file

@ -5,18 +5,18 @@ metadata:
name: ingress-nginx-controller name: ingress-nginx-controller
namespace: {{ ingress_nginx_namespace }} namespace: {{ ingress_nginx_namespace }}
labels: labels:
k8s-app: ingress-nginx app.kubernetes.io/name: ingress-nginx
version: v{{ ingress_nginx_controller_image_tag }} app.kubernetes.io/part-of: ingress-nginx
spec: spec:
selector: selector:
matchLabels: matchLabels:
k8s-app: ingress-nginx app.kubernetes.io/name: ingress-nginx
version: v{{ ingress_nginx_controller_image_tag }} app.kubernetes.io/part-of: ingress-nginx
template: template:
metadata: metadata:
labels: labels:
k8s-app: ingress-nginx app.kubernetes.io/name: ingress-nginx
version: v{{ ingress_nginx_controller_image_tag }} app.kubernetes.io/part-of: ingress-nginx
annotations: annotations:
prometheus.io/port: '10254' prometheus.io/port: '10254'
prometheus.io/scrape: 'true' prometheus.io/scrape: 'true'

View file

@ -4,6 +4,9 @@ kind: Role
metadata: metadata:
name: ingress-nginx name: ingress-nginx
namespace: {{ ingress_nginx_namespace }} namespace: {{ ingress_nginx_namespace }}
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx
rules: rules:
- apiGroups: [""] - apiGroups: [""]
resources: ["configmaps", "pods", "secrets", "namespaces"] resources: ["configmaps", "pods", "secrets", "namespaces"]
@ -22,11 +25,7 @@ rules:
- apiGroups: [""] - apiGroups: [""]
resources: ["endpoints"] resources: ["endpoints"]
verbs: ["get"] verbs: ["get"]
- apiGroups: - apiGroups: ["policy"]
- policy resourceNames: ["ingress-nginx"]
resourceNames: resources: ["podsecuritypolicies"]
- ingress-nginx verbs: ["use"]
resources:
- podsecuritypolicies
verbs:
- use

View file

@ -4,11 +4,14 @@ kind: RoleBinding
metadata: metadata:
name: ingress-nginx name: ingress-nginx
namespace: {{ ingress_nginx_namespace }} namespace: {{ ingress_nginx_namespace }}
subjects: labels:
- kind: ServiceAccount app.kubernetes.io/name: ingress-nginx
name: ingress-nginx app.kubernetes.io/part-of: ingress-nginx
namespace: {{ ingress_nginx_namespace }}
roleRef: roleRef:
apiGroup: rbac.authorization.k8s.io apiGroup: rbac.authorization.k8s.io
kind: Role kind: Role
name: ingress-nginx name: ingress-nginx
subjects:
- kind: ServiceAccount
name: ingress-nginx
namespace: {{ ingress_nginx_namespace }}

View file

@ -4,3 +4,6 @@ kind: ServiceAccount
metadata: metadata:
name: ingress-nginx name: ingress-nginx
namespace: {{ ingress_nginx_namespace }} namespace: {{ ingress_nginx_namespace }}
labels:
app.kubernetes.io/name: ingress-nginx
app.kubernetes.io/part-of: ingress-nginx

View file

@ -5,10 +5,11 @@ metadata:
name: default-backend name: default-backend
namespace: {{ ingress_nginx_namespace }} namespace: {{ ingress_nginx_namespace }}
labels: labels:
k8s-app: default-backend app.kubernetes.io/name: default-backend
app.kubernetes.io/part-of: ingress-nginx
spec: spec:
ports: ports:
- port: 80 - port: 80
targetPort: 8080 targetPort: 8080
selector: selector:
k8s-app: default-backend app.kubernetes.io/name: default-backend