https://github.com/ggalloro/skaffold-explained
Code, assets and commands used in the "Skaffold Explained" talk at Cloud Native Rejekts EU 2023.
https://github.com/ggalloro/skaffold-explained
cicd devops kubernetes skaffold
Last synced: 2 months ago
JSON representation
Code, assets and commands used in the "Skaffold Explained" talk at Cloud Native Rejekts EU 2023.
- Host: GitHub
- URL: https://github.com/ggalloro/skaffold-explained
- Owner: ggalloro
- Created: 2023-04-14T16:19:30.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-27T03:30:55.000Z (almost 2 years ago)
- Last Synced: 2025-04-14T22:42:08.145Z (6 months ago)
- Topics: cicd, devops, kubernetes, skaffold
- Language: Go
- Homepage:
- Size: 80.1 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Skaffold Explained
## Code, assets and commands used in the ["Skaffold Explained" talk](https://youtu.be/9on9kJJs_LQ) at Cloud Native Rejekts EU 2023.
```
git clone https://github.com/ggalloro/skaffold-explained/ \
&& cd skaffold-explained/go
``````
skaffold init
``````
minikube start
``````
eval $(minikube -p minikube docker-env)
skaffold config set --kube-context minikube local-cluster true
``````
portForward:
- resourceType: deployment
resourceName: skaffold-expl-app
port: http
localPort: 4503
```
```
test:
- image: skaffold-expl-app
custom:
- command: echo This is a custom test command
``````
skaffold dev
``````
skaffold build --file-output artifacts.json
``````
docker images
``````
skaffold test --build-artifacts artifacts.json
``````
skaffold deploy -a artifacts.json
``````
kubectl get pods,deploy,svc
``````
skaffold delete
``````
skaffold render -a artifacts.json --output render.yaml
``````
skaffold apply render.yaml
``````
kubectl get pods,deploy,svc
``````
skaffold delete
rm artifacts.json
``````
skaffold run --tail
``````
cd ../go-multi
```
```
minikube stop
eval $(minikube -p minikube docker-env -u)
``````
skaffold build --file-output artifacts.json --default-repo europe-docker.pkg.dev/galloro-host/demos
``````
skaffold deploy -a artifacts.json -p qa --kube-context=qa-cluster
``````
kubectl --context=qa-cluster get pods,svc
``````
skaffold deploy -a artifacts.json -p prod --kube-context=prod-cluster
``````
kubectl --context=prod-cluster get pods,svc
```