From 4f981a0b42dd35ccfca8fb9f21b058206402bcb6 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Sinha Date: Mon, 30 Sep 2019 12:34:55 +0530 Subject: [PATCH] Change YAML files to reference the newer APIs (#8299) --- .../kubernetes/minio-distributed-statefulset.yaml | 2 +- .../kubernetes/minio-gcs-gateway-deployment.yaml | 5 ++++- .../kubernetes/minio-standalone-deployment.yaml | 5 ++++- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/orchestration/kubernetes/minio-distributed-statefulset.yaml b/docs/orchestration/kubernetes/minio-distributed-statefulset.yaml index 5fcfc3192..94786c0d7 100644 --- a/docs/orchestration/kubernetes/minio-distributed-statefulset.yaml +++ b/docs/orchestration/kubernetes/minio-distributed-statefulset.yaml @@ -1,4 +1,4 @@ -apiVersion: apps/v1beta1 +apiVersion: apps/v1 kind: StatefulSet metadata: # This name uniquely identifies the StatefulSet diff --git a/docs/orchestration/kubernetes/minio-gcs-gateway-deployment.yaml b/docs/orchestration/kubernetes/minio-gcs-gateway-deployment.yaml index 19e24c3d5..b81d935d3 100644 --- a/docs/orchestration/kubernetes/minio-gcs-gateway-deployment.yaml +++ b/docs/orchestration/kubernetes/minio-gcs-gateway-deployment.yaml @@ -1,9 +1,12 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: # This name uniquely identifies the Deployment name: minio-deployment spec: + selector: + matchLabels: + app: minio # has to match .spec.template.metadata.labels strategy: type: Recreate template: diff --git a/docs/orchestration/kubernetes/minio-standalone-deployment.yaml b/docs/orchestration/kubernetes/minio-standalone-deployment.yaml index a4e012baf..4bd655109 100644 --- a/docs/orchestration/kubernetes/minio-standalone-deployment.yaml +++ b/docs/orchestration/kubernetes/minio-standalone-deployment.yaml @@ -1,9 +1,12 @@ -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: # This name uniquely identifies the Deployment name: minio spec: + selector: + matchLabels: + app: minio # has to match .spec.template.metadata.labels strategy: # Specifies the strategy used to replace old Pods by new ones # Refer: https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#strategy