From cd750c95ea4c0c0fea8a0875b2a957c05cc74c5c Mon Sep 17 00:00:00 2001 From: David Dooling Date: Wed, 5 Aug 2020 02:44:28 -0500 Subject: [PATCH] Update apiVersions in docs (#1690) * Update apiVersions in docs Update docs to reflect new apiVersions for ingresses and deployments. * Add selector to apps/v1 deployments --- CHANGELOG.md | 1 + docs/tutorials/akamai-fastdns.md | 2 +- docs/tutorials/alb-ingress.md | 4 ++-- docs/tutorials/alibabacloud.md | 2 +- docs/tutorials/aws-sd.md | 2 +- docs/tutorials/aws.md | 2 +- docs/tutorials/azure-private-dns.md | 26 +++++++++++++++++++------- docs/tutorials/azure.md | 4 ++-- docs/tutorials/cloudflare.md | 2 +- docs/tutorials/contour.md | 2 +- docs/tutorials/coredns.md | 2 +- docs/tutorials/designate.md | 7 +++++-- docs/tutorials/digitalocean.md | 2 +- docs/tutorials/dnsimple.md | 2 +- docs/tutorials/exoscale.md | 2 +- docs/tutorials/gke.md | 2 +- docs/tutorials/hetzner.md | 2 +- docs/tutorials/hostport.md | 2 +- docs/tutorials/infoblox.md | 2 +- docs/tutorials/istio.md | 2 +- docs/tutorials/kube-ingress-aws.md | 8 +++++--- docs/tutorials/linode.md | 2 +- docs/tutorials/nginx-ingress.md | 2 +- docs/tutorials/ns1.md | 2 +- docs/tutorials/openshift.md | 2 +- docs/tutorials/oracle.md | 2 +- docs/tutorials/ovh.md | 2 +- docs/tutorials/pdns.md | 2 +- docs/tutorials/rcodezero.md | 2 +- docs/tutorials/rdns.md | 2 +- docs/tutorials/rfc2136.md | 1 + docs/tutorials/transip.md | 2 +- docs/tutorials/vinyldns.md | 2 +- docs/tutorials/vultr.md | 2 +- 34 files changed, 62 insertions(+), 43 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e0893ab6d..a58da80e0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ - Fix: add serviceaccount name in kustomize deployment (#1689) @jmthvt - Updates Oracle OCI SDK to latest (#1687) @ericrrath - UltraDNS Provider (#1635) @kbhandari +- Update apiVersions in docs (#1690) @ddgenome ## v0.7.2 - 2020-06-03 diff --git a/docs/tutorials/akamai-fastdns.md b/docs/tutorials/akamai-fastdns.md index 6dfae56c2..f8b22d0af 100644 --- a/docs/tutorials/akamai-fastdns.md +++ b/docs/tutorials/akamai-fastdns.md @@ -97,7 +97,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/alb-ingress.md b/docs/tutorials/alb-ingress.md index 3eb403b21..08c40c3bb 100644 --- a/docs/tutorials/alb-ingress.md +++ b/docs/tutorials/alb-ingress.md @@ -110,7 +110,7 @@ this Ingress object will only be fronting one backend Service, we might instead create the following: ```yaml -apiVersion: extensions/v1beta1 +apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: annotations: @@ -145,7 +145,7 @@ and one AAAA record) for each hostname associated with the Ingress object. Example: ```yaml -apiVersion: extensions/v1beta1 +apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: annotations: diff --git a/docs/tutorials/alibabacloud.md b/docs/tutorials/alibabacloud.md index 73d601084..2445d098e 100644 --- a/docs/tutorials/alibabacloud.md +++ b/docs/tutorials/alibabacloud.md @@ -149,7 +149,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/aws-sd.md b/docs/tutorials/aws-sd.md index b0fa610bf..70492525d 100644 --- a/docs/tutorials/aws-sd.md +++ b/docs/tutorials/aws-sd.md @@ -110,7 +110,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/aws.md b/docs/tutorials/aws.md index f3c689312..6cee7710c 100644 --- a/docs/tutorials/aws.md +++ b/docs/tutorials/aws.md @@ -174,7 +174,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/azure-private-dns.md b/docs/tutorials/azure-private-dns.md index 2b9868c39..0042154ca 100644 --- a/docs/tutorials/azure-private-dns.md +++ b/docs/tutorials/azure-private-dns.md @@ -150,11 +150,14 @@ The credentials of the service principal are provided to ExternalDNS as environm ### Manifest (for clusters without RBAC enabled) ```yaml -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: externaldns spec: + selector: + matchLabels: + app: externaldns strategy: type: Recreate template: @@ -196,7 +199,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] @@ -216,11 +219,14 @@ subjects: name: externaldns namespace: default --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: externaldns spec: + selector: + matchLabels: + app: externaldns strategy: type: Recreate template: @@ -267,7 +273,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] --- @@ -283,11 +289,14 @@ subjects: - kind: ServiceAccount name: externaldns --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: externaldns spec: + selector: + matchLabels: + app: externaldns strategy: type: Recreate template: @@ -326,11 +335,14 @@ $ kubectl create -f externaldns.yaml Create a service file called 'nginx.yaml' with the following contents: ```yaml -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: nginx spec: + selector: + matchLabels: + app: nginx template: metadata: labels: @@ -356,7 +368,7 @@ spec: type: ClusterIP --- -apiVersion: extensions/v1beta1 +apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: nginx diff --git a/docs/tutorials/azure.md b/docs/tutorials/azure.md index 8525965e6..ae57a1abd 100644 --- a/docs/tutorials/azure.md +++ b/docs/tutorials/azure.md @@ -223,7 +223,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] @@ -297,7 +297,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] --- diff --git a/docs/tutorials/cloudflare.md b/docs/tutorials/cloudflare.md index 3f2faf644..27f004a70 100644 --- a/docs/tutorials/cloudflare.md +++ b/docs/tutorials/cloudflare.md @@ -77,7 +77,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/contour.md b/docs/tutorials/contour.md index b5d5e0bcf..bea7911f4 100644 --- a/docs/tutorials/contour.md +++ b/docs/tutorials/contour.md @@ -50,7 +50,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/coredns.md b/docs/tutorials/coredns.md index 3e7305795..ca9aaa3f2 100644 --- a/docs/tutorials/coredns.md +++ b/docs/tutorials/coredns.md @@ -130,7 +130,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/designate.md b/docs/tutorials/designate.md index 875eb14d9..2babae5a1 100644 --- a/docs/tutorials/designate.md +++ b/docs/tutorials/designate.md @@ -98,7 +98,7 @@ rules: - apiGroups: [""] resources: ["pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] @@ -118,11 +118,14 @@ subjects: name: external-dns namespace: default --- -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: external-dns spec: + selector: + matchLabels: + app: external-dns strategy: type: Recreate template: diff --git a/docs/tutorials/digitalocean.md b/docs/tutorials/digitalocean.md index 2a316a390..d24eb50bd 100644 --- a/docs/tutorials/digitalocean.md +++ b/docs/tutorials/digitalocean.md @@ -68,7 +68,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/dnsimple.md b/docs/tutorials/dnsimple.md index 586efe940..afb799fc4 100644 --- a/docs/tutorials/dnsimple.md +++ b/docs/tutorials/dnsimple.md @@ -62,7 +62,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/exoscale.md b/docs/tutorials/exoscale.md index 64f6efbe2..96b17e008 100644 --- a/docs/tutorials/exoscale.md +++ b/docs/tutorials/exoscale.md @@ -74,7 +74,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/gke.md b/docs/tutorials/gke.md index d402ba7d5..862e9f402 100644 --- a/docs/tutorials/gke.md +++ b/docs/tutorials/gke.md @@ -118,7 +118,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/hetzner.md b/docs/tutorials/hetzner.md index 4a45b84c1..23d8ec182 100644 --- a/docs/tutorials/hetzner.md +++ b/docs/tutorials/hetzner.md @@ -68,7 +68,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/hostport.md b/docs/tutorials/hostport.md index bba509530..9950d4af9 100644 --- a/docs/tutorials/hostport.md +++ b/docs/tutorials/hostport.md @@ -58,7 +58,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/infoblox.md b/docs/tutorials/infoblox.md index edf7b9519..237fcfd1f 100644 --- a/docs/tutorials/infoblox.md +++ b/docs/tutorials/infoblox.md @@ -111,7 +111,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/istio.md b/docs/tutorials/istio.md index 1282e3561..57ef2ea78 100644 --- a/docs/tutorials/istio.md +++ b/docs/tutorials/istio.md @@ -57,7 +57,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/kube-ingress-aws.md b/docs/tutorials/kube-ingress-aws.md index 325160c88..565e1185d 100644 --- a/docs/tutorials/kube-ingress-aws.md +++ b/docs/tutorials/kube-ingress-aws.md @@ -43,6 +43,7 @@ metadata: rules: - apiGroups: - extensions + - networking.k8s.io resources: - ingresses verbs: @@ -51,6 +52,7 @@ rules: - watch - apiGroups: - extensions + - networking.k8s.io resources: - ingresses/status verbs: @@ -170,7 +172,7 @@ this Ingress object will only be fronting one backend Service, we might instead create the following: ```yaml -apiVersion: extensions/v1beta1 +apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: annotations: @@ -203,7 +205,7 @@ and one AAAA record) for each hostname associated with the Ingress object. Example: ```yaml -apiVersion: extensions/v1beta1 +apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: annotations: @@ -237,7 +239,7 @@ set to `nlb` then ExternalDNS will create an NLB instead of an ALB. Example: ```yaml -apiVersion: extensions/v1beta1 +apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: annotations: diff --git a/docs/tutorials/linode.md b/docs/tutorials/linode.md index cb9fc7c25..73957e50c 100644 --- a/docs/tutorials/linode.md +++ b/docs/tutorials/linode.md @@ -67,7 +67,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/nginx-ingress.md b/docs/tutorials/nginx-ingress.md index fd19ff324..028ed78db 100644 --- a/docs/tutorials/nginx-ingress.md +++ b/docs/tutorials/nginx-ingress.md @@ -224,7 +224,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/ns1.md b/docs/tutorials/ns1.md index 014deacef..45bbd6d1f 100644 --- a/docs/tutorials/ns1.md +++ b/docs/tutorials/ns1.md @@ -87,7 +87,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/openshift.md b/docs/tutorials/openshift.md index afe187f8a..35583834f 100644 --- a/docs/tutorials/openshift.md +++ b/docs/tutorials/openshift.md @@ -51,7 +51,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/oracle.md b/docs/tutorials/oracle.md index 98918816c..7a127e04a 100644 --- a/docs/tutorials/oracle.md +++ b/docs/tutorials/oracle.md @@ -53,7 +53,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/ovh.md b/docs/tutorials/ovh.md index 0d26d0c1a..206e974cf 100644 --- a/docs/tutorials/ovh.md +++ b/docs/tutorials/ovh.md @@ -119,7 +119,7 @@ rules: - apiGroups: [""] resources: ["pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/pdns.md b/docs/tutorials/pdns.md index 5a555faa4..6a0405e8a 100644 --- a/docs/tutorials/pdns.md +++ b/docs/tutorials/pdns.md @@ -78,7 +78,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/rcodezero.md b/docs/tutorials/rcodezero.md index 4338523ba..e7beb5600 100644 --- a/docs/tutorials/rcodezero.md +++ b/docs/tutorials/rcodezero.md @@ -82,7 +82,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/rdns.md b/docs/tutorials/rdns.md index aa7635421..339bbef68 100644 --- a/docs/tutorials/rdns.md +++ b/docs/tutorials/rdns.md @@ -78,7 +78,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/rfc2136.md b/docs/tutorials/rfc2136.md index 4d1849fd3..7b512b8aa 100644 --- a/docs/tutorials/rfc2136.md +++ b/docs/tutorials/rfc2136.md @@ -152,6 +152,7 @@ rules: - list - apiGroups: - extensions + - networking.k8s.io resources: - ingresses verbs: diff --git a/docs/tutorials/transip.md b/docs/tutorials/transip.md index a416b1bc3..4e1ac4d9e 100644 --- a/docs/tutorials/transip.md +++ b/docs/tutorials/transip.md @@ -69,7 +69,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/vinyldns.md b/docs/tutorials/vinyldns.md index 6c5b6fc5a..2c26b1c19 100644 --- a/docs/tutorials/vinyldns.md +++ b/docs/tutorials/vinyldns.md @@ -99,7 +99,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""] diff --git a/docs/tutorials/vultr.md b/docs/tutorials/vultr.md index 7bd0a9f5b..170e93043 100644 --- a/docs/tutorials/vultr.md +++ b/docs/tutorials/vultr.md @@ -68,7 +68,7 @@ rules: - apiGroups: [""] resources: ["services","endpoints","pods"] verbs: ["get","watch","list"] -- apiGroups: ["extensions"] +- apiGroups: ["extensions","networking.k8s.io"] resources: ["ingresses"] verbs: ["get","watch","list"] - apiGroups: [""]