From e46318f4c5b9e5fd3786833419b600ac14fec223 Mon Sep 17 00:00:00 2001 From: Ranjith KA Date: Wed, 16 Oct 2024 15:01:49 +0530 Subject: [PATCH] Create and run image using kaniko --- minikube/skaffold/01_skaffold.md | 13 +++++++++++++ minikube/skaffold/02_skaffold.md | 4 ++++ skaffold.yaml | 32 ++++++++++++++++---------------- 3 files changed, 33 insertions(+), 16 deletions(-) create mode 100644 minikube/skaffold/02_skaffold.md diff --git a/minikube/skaffold/01_skaffold.md b/minikube/skaffold/01_skaffold.md index 6d9e75d..2df2e75 100644 --- a/minikube/skaffold/01_skaffold.md +++ b/minikube/skaffold/01_skaffold.md @@ -34,3 +34,16 @@ Skaffold also supports a polling mode where the filesystem is checked for change - [ ] Add debugging with Skaffold - [ ] Steps for Golang and .NET Core + +## Continuous Delivery + +Skaffold can be used to automate the deployment of applications to Kubernetes. Skaffold can be used to deploy applications to a Kubernetes cluster, and can also be used to deploy applications to a local Kubernetes cluster, such as Minikube. + +### Deploying to a Kubernetes Cluster + +To deploy an application to a Kubernetes cluster, you can use the skaffold deploy command. This command will build the application, push the image to a registry, and deploy the application to the Kubernetes cluster. + +```bash +skaffold deploy +``` + diff --git a/minikube/skaffold/02_skaffold.md b/minikube/skaffold/02_skaffold.md new file mode 100644 index 0000000..460e3bb --- /dev/null +++ b/minikube/skaffold/02_skaffold.md @@ -0,0 +1,4 @@ +# Skaffold Pipeline stages + +![alt text](https://skaffold.dev/images/workflow.png) + diff --git a/skaffold.yaml b/skaffold.yaml index 3372439..26f4169 100644 --- a/skaffold.yaml +++ b/skaffold.yaml @@ -5,12 +5,12 @@ metadata: build: artifacts: - image: ranjithka/prd - docker: - dockerfile: Dockerfile - local: - push: false + kaniko: {} + cluster: + dockerConfig: + secretName: kaniko-secret tagPolicy: - gitCommit: {} + gitCommit: {} # Use the git commit sha as the tag manifests: kustomize: paths: @@ -23,14 +23,14 @@ deploy: valuesFiles: - minikube/dev/prd.yaml version: 1.0.2 -profiles: - - name: production - manifests: - kustomize: - paths: - - minikube/kustomize/production - - name: staging - manifests: - kustomize: - paths: - - minikube/kustomize/staging \ No newline at end of file +# profiles: +# - name: production +# manifests: +# kustomize: +# paths: +# - minikube/kustomize/production +# - name: staging +# manifests: +# kustomize: +# paths: +# - minikube/kustomize/staging \ No newline at end of file