Drop deprecated APIs for kube v1.16 support
Kubernetes v1.16 is dropping support for beta extensions/apps APIs for Deployment, DaemonSet and ReplicaSet - as described in: https://github.com/kubernetes/kubernetes/blob/master/CHANGELOG-1.15.md#deprecations-and-removals Replace all occurrences with apps/v1. Change-Id: Ib1d8b7672318538be7f0066832add29f7d066b92 Story: 2006459 Task: 36385
This commit is contained in:
parent
eebcc9b7a1
commit
4b075ba13f
|
@ -206,7 +206,7 @@ spec:
|
|||
|
||||
# This manifest creates a Deployment of Typha to back the above service.
|
||||
|
||||
apiVersion: apps/v1beta1
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: calico-typha
|
||||
|
@ -222,6 +222,9 @@ spec:
|
|||
# production, we recommend running at least 3 replicas to reduce the impact of rolling upgrade.
|
||||
replicas: 0
|
||||
revisionHistoryLimit: 2
|
||||
selector:
|
||||
matchLabels:
|
||||
k8s-app: calico-typha
|
||||
template:
|
||||
metadata:
|
||||
labels:
|
||||
|
@ -312,7 +315,7 @@ spec:
|
|||
# as the Calico CNI plugins and network config on
|
||||
# each master and worker node in a Kubernetes cluster.
|
||||
kind: DaemonSet
|
||||
apiVersion: extensions/v1beta1
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
name: calico-node
|
||||
namespace: kube-system
|
||||
|
|
|
@ -76,7 +76,7 @@ EOF
|
|||
mkdir -p $(dirname ${TILLER_DEPLOYER})
|
||||
cat << EOF > ${TILLER_DEPLOYER}
|
||||
---
|
||||
apiVersion: extensions/v1beta1
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
creationTimestamp: null
|
||||
|
|
|
@ -41,7 +41,7 @@ data:
|
|||
]
|
||||
---
|
||||
kind: DaemonSet
|
||||
apiVersion: extensions/v1beta1
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
name: ingress-traefik
|
||||
namespace: kube-system
|
||||
|
|
|
@ -77,7 +77,7 @@ EOF
|
|||
mkdir -p $(dirname ${KEYSTONE_AUTH_DEPLOY})
|
||||
cat << EOF > ${KEYSTONE_AUTH_DEPLOY}
|
||||
---
|
||||
apiVersion: extensions/v1beta1
|
||||
apiVersion: apps/v1
|
||||
kind: DaemonSet
|
||||
metadata:
|
||||
labels:
|
||||
|
|
|
@ -203,7 +203,7 @@ spec:
|
|||
protocol: TCP
|
||||
port: 9090
|
||||
---
|
||||
apiVersion: extensions/v1beta1
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: prometheus
|
||||
|
@ -313,7 +313,7 @@ spec:
|
|||
selector:
|
||||
grafana: "true"
|
||||
---
|
||||
apiVersion: extensions/v1beta1
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: grafana
|
||||
|
|
|
@ -166,6 +166,7 @@ metadata:
|
|||
spec:
|
||||
selector:
|
||||
matchLabels:
|
||||
tier: node
|
||||
app: flannel
|
||||
template:
|
||||
metadata:
|
||||
|
|
|
@ -112,7 +112,7 @@ subjects:
|
|||
# ------------------- Dashboard Deployment ------------------- #
|
||||
|
||||
kind: Deployment
|
||||
apiVersion: apps/v1beta2
|
||||
apiVersion: apps/v1
|
||||
metadata:
|
||||
labels:
|
||||
k8s-app: kubernetes-dashboard
|
||||
|
@ -213,7 +213,7 @@ EOF
|
|||
echo "Writing File: $INFLUX_DEPLOY"
|
||||
mkdir -p $(dirname ${INFLUX_DEPLOY})
|
||||
cat << EOF > ${INFLUX_DEPLOY}
|
||||
apiVersion: extensions/v1beta1
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: monitoring-influxdb
|
||||
|
@ -260,7 +260,7 @@ EOF
|
|||
echo "Writing File: $GRAFANA_DEPLOY"
|
||||
mkdir -p $(dirname ${GRAFANA_DEPLOY})
|
||||
cat << EOF > ${GRAFANA_DEPLOY}
|
||||
apiVersion: extensions/v1beta1
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: monitoring-grafana
|
||||
|
@ -358,7 +358,7 @@ metadata:
|
|||
name: heapster
|
||||
namespace: kube-system
|
||||
---
|
||||
apiVersion: extensions/v1beta1
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: heapster
|
||||
|
|
|
@ -90,7 +90,7 @@ write_files:
|
|||
TEMPLATE=/etc/kubernetes/addons/coredns-de.yaml
|
||||
mkdir -p $(dirname ${TEMPLATE})
|
||||
cat > $TEMPLATE <<EOF
|
||||
apiVersion: extensions/v1beta1
|
||||
apiVersion: apps/v1
|
||||
kind: Deployment
|
||||
metadata:
|
||||
name: coredns
|
||||
|
|
Loading…
Reference in New Issue