From 818f7b5538aa3c3ca11c7f9a7132a5535d376cff Mon Sep 17 00:00:00 2001 From: Medya Gh <medya@google.com> Date: Tue, 2 Jun 2020 14:30:37 -0700 Subject: [PATCH] deployment yaml --- .../docs/tutorials/setup_minikube_in_github_actions.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/site/content/en/docs/tutorials/setup_minikube_in_github_actions.md b/site/content/en/docs/tutorials/setup_minikube_in_github_actions.md index 50cf6ebc38..3c76cae8c2 100644 --- a/site/content/en/docs/tutorials/setup_minikube_in_github_actions.md +++ b/site/content/en/docs/tutorials/setup_minikube_in_github_actions.md @@ -17,14 +17,15 @@ To install and start a minikube cluster, add the following step to your [github uses: medyagh/setup-minikube@master ``` -for more information checkout github actions marketplace :[setup-minikube](https://github.com/marketplace/actions/setup-minikube). +for more information see github actions marketplace [setup-minikube]( https://github.com/marketplace/actions/setup-minikube). ## Example: build image & deploy to minikube on each PR Requirements: - a valid Dockerfile -- a valid deployment.yaml to deploy image to kubernetes (make sure image pull policy is set to never see [bellow](/#deployment.yaml used in the example) for example) +- a valid [deployment.yaml](/#example deployment yaml) to deploy image to kubernetes +- in your deployment.yaml make sure the is set to `imagePullPolicy: Never` Steps: @@ -59,7 +60,7 @@ Steps: minikube service list minikube service example --url echo "------------------opening the service------------------" - curl $(minikube service example --url)/version + curl $(minikube service example --url) ``` In this example, the above workflow yaml, will do the following steps on each coming PR: @@ -71,7 +72,7 @@ In this example, the above workflow yaml, will do the following steps on each co 5. Apply the yaml deployment yaml file minikube 6. Check the service been created in minikube -### deployment.yaml used in the example +### example deployment yaml ```yaml apiVersion: apps/v1