File tree Expand file tree Collapse file tree 10 files changed +25
-26
lines changed Expand file tree Collapse file tree 10 files changed +25
-26
lines changed Original file line number Diff line number Diff line change 77 name : " Deploy to KinD and E2E"
88 runs-on : ubuntu-latest
99 steps :
10- - name : Download deploy.e2e .yaml from Release
10+ - name : Download kubernetes.local .yaml from Release
1111 env :
1212 RELEASE_TAG : ${{ github.event.release.tag_name }}
1313 DOWNLOAD_URL : ${{ github.event.release.assets[0].browser_download_url }}
21212222 # with:
2323 # config: .github/kubernetes/kind.yaml
24- - name : " Deploy deploy.e2e .yaml to KinD"
24+ - name : " Deploy kubernetes.local .yaml to KinD"
2525 id : local-path
2626 run : |
2727 export KUBECONFIG="$(kind get kubeconfig-path)"
3232 echo "cluster-info ..."
3333 kubectl cluster-info
3434 echo "installing e2e overlay..."
35- kubectl apply -f deploy.e2e .yaml
35+ kubectl apply -f kubernetes.local .yaml
3636 echo "waiting for pods to be ready ..."
3737 kubectl wait --for=condition=Ready pods --all --timeout=5m
3838 kubectl get pods
Original file line number Diff line number Diff line change 88 runs-on : ubuntu-latest
99 if : github.event.deployment.environment == 'e2e'
1010 steps :
11- - name : Download deploy.e2e .yaml from Release
11+ - name : Download kubernetes.local .yaml from Release
1212 env :
1313 RELEASE_URL : ${{ github.event.repository.releases_url }}
1414 run : |
1515 echo "Downloading $RELEASE_URL"
1616 # curl -O -L $RELEASE_URL
1717 # FIXME Workaround
18- curl -s https://api.github.com/repos/xmlking/micro-starter-kit/releases/latest | grep browser_download_url | grep deploy.e2e .yaml | cut -d '"' -f 4 | wget -qi -
18+ curl -s https://api.github.com/repos/xmlking/micro-starter-kit/releases/latest | grep browser_download_url | grep kubernetes.local .yaml | cut -d '"' -f 4 | wget -qi -
1919 - name : " deployment pending"
2020 uses : " deliverybot/deployment-status@master"
2121 with :
32323333 # with:
3434 # config: .github/kubernetes/kind.yaml
35- - name : " Deploy deploy.e2e .yaml to KinD"
35+ - name : " Deploy kubernetes.local .yaml to KinD"
3636 id : local-path
3737 run : |
3838 export KUBECONFIG="$(kind get kubeconfig-path)"
4343 echo "cluster-info ..."
4444 kubectl cluster-info
4545 echo "installing e2e overlay..."
46- kubectl apply -f deploy.e2e .yaml
46+ kubectl apply -f kubernetes.local .yaml
4747 echo "waiting for pods to be ready ..."
4848 kubectl wait --for=condition=Ready pods --all --timeout=5m
4949 kubectl get pods
Original file line number Diff line number Diff line change 4646 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
4747 with :
4848 upload_url : ${{ steps.create_release.outputs.upload_url }}
49- asset_path : ./build/deploy.e2e .yaml
50- asset_name : deploy.e2e .yaml
49+ asset_path : ./build/kubernetes.local .yaml
50+ asset_name : kubernetes.local .yaml
5151 asset_content_type : text/vnd.yaml
5252 docker :
5353 name : Build and Publish docker images
Original file line number Diff line number Diff line change 55 " zxh404.vscode-proto3" ,
66 " xaver.clang-format" ,
77 " EditorConfig.EditorConfig" ,
8- " donjayamanne.githistory" ,
98 " humao.rest-client" ,
109 " PKief.material-icon-theme" ,
1110 " hediet.vscode-drawio" ,
Original file line number Diff line number Diff line change @@ -142,12 +142,12 @@ docker rmi $(docker images -f "dangling=true" -q)
142142
143143# make kustomize OVERLAY=e2e NS=default VERSION=v0.1.0-440-g6c7fb7a
144144make kustomize
145- kubectl apply -f build/deploy .yaml
145+ kubectl apply -f build/kubernetes .yaml
146146
147147POD_NAME=$( kubectl get pods -lapp.kubernetes.io/name=account-srv -o jsonpath=' {.items[0].metadata.name}' )
148148kubectl logs -f -c srv $POD_NAME
149149
150- kubectl delete -f build/deploy .yaml
150+ kubectl delete -f build/kubernetes .yaml
151151```
152152
153153## Reference
Original file line number Diff line number Diff line change @@ -136,9 +136,9 @@ deploy
136136│ ├── service-headless.yaml
137137│ ├── service.yaml
138138│ └── statefulset.yaml
139- ├── deploy.e2e .yaml
140- ├── deploy .production.yaml
141- ├── deploy .yaml
139+ ├── kubernetes.local .yaml
140+ ├── kubernetes .production.yaml
141+ ├── kubernetes .yaml
142142└── overlays <-- environments
143143 ├── e2e
144144 │ ├── kustomization.yaml
@@ -212,8 +212,8 @@ kustomize build config/envs/production --output ./build/kubernetes/production
212212# make kustomize NS=default OVERLAY=production VERSION=v0.1.3
213213# make kustomize NS=default OVERLAY=e2e VERSION=v0.1.3
214214make kustomize
215- kubeval --strict --ignore-missing-schemas build/deploy .yaml
216- kubectl apply -f build/deploy .yaml
215+ kubeval --strict --ignore-missing-schemas build/kubernetes .yaml
216+ kubectl apply -f build/kubernetes .yaml
217217kubectl get all -l app.kubernetes.io/managed-by=kustomize
218218open http://localhost:8500/ui/# /dc1/services
219219
@@ -225,7 +225,7 @@ kubectl exec -it $POD_NAME -- busybox sh
225225
226226kubectl get svc
227227
228- kubectl delete -f build/deploy .yaml
228+ kubectl delete -f build/kubernetes .yaml
229229```
230230
231231## kustomize-sopssecret-plugin
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ services:
55 image : envoyproxy/envoy:latest
66 command : /usr/local/bin/envoy -c etc/envoy/envoy.yaml
77 volumes :
8- - " ./deploy/bases /envoy/envoy.yaml:/etc/envoy/envoy.yaml"
8+ - " ./config/base /envoy/envoy.yaml:/etc/envoy/envoy.yaml"
99 expose :
1010 - " 9090"
1111 - " 9901"
Original file line number Diff line number Diff line change 2525- build docker images
2626- sign images
2727- push images to GCR
28- - generate build/deploy .yaml for k8s with Helm or Kustomize
28+ - generate build/kubernetes .yaml for k8s with Helm or Kustomize
2929- generate release on GitHub
3030
3131## Deployment Pipeline
Original file line number Diff line number Diff line change @@ -151,7 +151,7 @@ make docker_clean
151151
152152### kustomize
153153
154- > generate ` build/deploy .yaml ` for given ` overlay ` and ` namespace ` using ** kustomize**
154+ > generate ` build/kubernetes .yaml ` for given ` overlay ` and ` namespace ` using ** kustomize**
155155
156156``` bash
157157make kustomize OVERLAY=production NS=default VERSION=v1.0.1
@@ -160,7 +160,7 @@ make kustomize OVERLAY=production
160160make kustomize NS=default
161161# defaults: ENV=local, NS=default, VERSION=git tag
162162make kustomize
163- # build yaml files for e2e , prod overlays into ./build
163+ # build yaml files for local , prod overlays into ./build
164164make build/kustomize VERSION=v0.2.5
165165```
166166
Original file line number Diff line number Diff line change @@ -9,18 +9,18 @@ True **e2e** tests are Black-box tests that invoke network endpoint.
99
1010``` bash
1111# start
12- kubectl apply -f build/deploy.e2e .yaml
12+ kubectl apply -f build/kubernetes.local .yaml
1313# stop
14- kubectl delete -f build/deploy.e2e .yaml
14+ kubectl delete -f build/kubernetes.local .yaml
1515```
1616
1717> (Or) start production like e2e test cluster locally
1818
1919``` bash
2020# start
21- kubectl apply -f build/deploy .production.yaml
21+ kubectl apply -f build/kubernetes .production.yaml
2222# stop
23- kubectl delete -f build/deploy .production.yaml
23+ kubectl delete -f build/kubernetes .production.yaml
2424```
2525
2626## E2E Test via REST Gateway
You can’t perform that action at this time.
0 commit comments