diff --git a/Deployment-to-Kubernetes-and-Minikube.md b/Deployment-to-Kubernetes-and-Minikube.md index 37a1591..bdac4bf 100644 --- a/Deployment-to-Kubernetes-and-Minikube.md +++ b/Deployment-to-Kubernetes-and-Minikube.md @@ -60,11 +60,14 @@ In order to deploy the docker image onto minikube in form of "pods" and "service **Create master POD** ``` -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: weedmasterdeployment spec: + selector: + matchLabels: + app: haystack template: # create pods using pod definition in this template metadata: labels: @@ -88,11 +91,14 @@ spec: **Create volume POD** ``` -apiVersion: extensions/v1beta1 +apiVersion: apps/v1 kind: Deployment metadata: name: weedvolumedeployment spec: + selector: + matchLabels: + app: haystack template: metadata: labels: