Skip to content

Commit

Permalink
Create and run image using kaniko
Browse files Browse the repository at this point in the history
  • Loading branch information
ranjith-ka committed Oct 26, 2024
1 parent a3fb37f commit e46318f
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 16 deletions.
13 changes: 13 additions & 0 deletions minikube/skaffold/01_skaffold.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```

4 changes: 4 additions & 0 deletions minikube/skaffold/02_skaffold.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Skaffold Pipeline stages

![alt text](https://skaffold.dev/images/workflow.png)

32 changes: 16 additions & 16 deletions skaffold.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
# profiles:
# - name: production
# manifests:
# kustomize:
# paths:
# - minikube/kustomize/production
# - name: staging
# manifests:
# kustomize:
# paths:
# - minikube/kustomize/staging

0 comments on commit e46318f

Please sign in to comment.