Upgrading kubernetes API
Change-Id: I279db986e2dab1ebcb5b48b4195363af395c8de3
diff --git a/ponnet/templates/genie-cni-1.8.yaml b/ponnet/templates/genie-cni-1.8.yaml
index 0fbf50a..51df41c 100644
--- a/ponnet/templates/genie-cni-1.8.yaml
+++ b/ponnet/templates/genie-cni-1.8.yaml
@@ -14,7 +14,7 @@
# limitations under the License.
---
kind: ClusterRole
-apiVersion: rbac.authorization.k8s.io/v1beta1
+apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: genie-plugin
rules:
@@ -60,7 +60,7 @@
---
kind: ClusterRole
-apiVersion: rbac.authorization.k8s.io/v1beta1
+apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: genie-policy
rules:
@@ -79,7 +79,7 @@
---
kind: ClusterRoleBinding
-apiVersion: rbac.authorization.k8s.io/v1beta1
+apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: genie-plugin
roleRef:
@@ -99,7 +99,7 @@
---
kind: ClusterRoleBinding
-apiVersion: rbac.authorization.k8s.io/v1beta1
+apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: genie-policy
roleRef:
@@ -157,7 +157,7 @@
---
# Install CNI-Genie plugin on each slave node.
kind: DaemonSet
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
metadata:
name: genie-plugin
namespace: kube-system
@@ -223,7 +223,7 @@
---
# Genie network admission controller daemonset configuration
# Genie network admission controller pods will run only in master nodes
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
kind: DaemonSet
metadata:
name: genie-network-admission-controller
@@ -270,7 +270,7 @@
---
# Daemonset configuration for geine network policy
kind: DaemonSet
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
metadata:
name: genie-policy-controller
namespace: kube-system
diff --git a/ponnet/templates/ponnet-cni.yaml b/ponnet/templates/ponnet-cni.yaml
index c72abab..8d8a25f 100644
--- a/ponnet/templates/ponnet-cni.yaml
+++ b/ponnet/templates/ponnet-cni.yaml
@@ -14,7 +14,7 @@
# limitations under the License.
kind: ClusterRole
-apiVersion: rbac.authorization.k8s.io/v1beta1
+apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ponnet-plugin
rules:
@@ -60,7 +60,7 @@
---
kind: ClusterRoleBinding
-apiVersion: rbac.authorization.k8s.io/v1beta1
+apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: ponnet-plugin
roleRef:
@@ -122,7 +122,7 @@
---
# Install Ponnnet CNI conf on each slave node.
kind: DaemonSet
-apiVersion: extensions/v1beta1
+apiVersion: apps/v1
metadata:
name: ponnet-plugin
namespace: kube-system