Skip to content

Commit d2f084e

Browse files
authored
Merge pull request #137 from xmlking/master
docs(deploy): fix docs
2 parents facfb0c + 8c18aeb commit d2f084e

File tree

10 files changed

+25
-26
lines changed

10 files changed

+25
-26
lines changed

.github/workflows/e2e.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
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 }}
@@ -21,7 +21,7 @@ jobs:
2121
uses: engineerd/[email protected]
2222
# 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)"
@@ -32,7 +32,7 @@ jobs:
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

.github/workflows/kind-deploy.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,14 @@ jobs:
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:
@@ -32,7 +32,7 @@ jobs:
3232
uses: engineerd/[email protected]
3333
# 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)"
@@ -43,7 +43,7 @@ jobs:
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

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ jobs:
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

.vscode/extensions.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
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",

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
144144
make kustomize
145-
kubectl apply -f build/deploy.yaml
145+
kubectl apply -f build/kubernetes.yaml
146146

147147
POD_NAME=$(kubectl get pods -lapp.kubernetes.io/name=account-srv -o jsonpath='{.items[0].metadata.name}')
148148
kubectl 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

config/README_old.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff 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
214214
make 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
217217
kubectl get all -l app.kubernetes.io/managed-by=kustomize
218218
open http://localhost:8500/ui/#/dc1/services
219219

@@ -225,7 +225,7 @@ kubectl exec -it $POD_NAME -- busybox sh
225225

226226
kubectl get svc
227227

228-
kubectl delete -f build/deploy.yaml
228+
kubectl delete -f build/kubernetes.yaml
229229
```
230230

231231
## kustomize-sopssecret-plugin

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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"

docs/advanced/gitops.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
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

docs/introduction/makefile.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
157157
make kustomize OVERLAY=production NS=default VERSION=v1.0.1
@@ -160,7 +160,7 @@ make kustomize OVERLAY=production
160160
make kustomize NS=default
161161
# defaults: ENV=local, NS=default, VERSION=git tag
162162
make kustomize
163-
# build yaml files for e2e, prod overlays into ./build
163+
# build yaml files for local, prod overlays into ./build
164164
make build/kustomize VERSION=v0.2.5
165165
```
166166

e2e/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)