You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* README suggestions
* Split k8s resources into their own manifest files.
* Rename a lot of things.
* Reduce.
* Change images in manifests/ to be "fail safe" without kustomize.
* Copy changes in README and comments and workflow summary output
* correct shell syntax error.
* Change hostnames for Ingresses.
* correct mount point for postgres
echo "Access the vote endpoint at \`pr-${{ github.event.number }}-vote.app.qa-gke.uffizzi.com\`." | tee --append $GITHUB_STEP_SUMMARY
174
-
echo "Access the result endpoint at \`pr-${{ github.event.number }}-result.app.qa-gke.uffizzi.com\`." | tee --append $GITHUB_STEP_SUMMARY
175
-
180
+
if [[ ${RUNNER_DEBUG} == 1 ]]; then
181
+
kubectl get all --kubeconfig ./kubeconfig
182
+
fi
183
+
184
+
echo "Access the vote endpoint at https://${VOTE_HOST}"
185
+
echo "Access the result endpoint at https://${RESULT_HOST}"
186
+
echo "Access the \`vote\` endpoint at [\`${VOTE_HOST}\`.](https://${VOTE_HOST})" >> $GITHUB_STEP_SUMMARY
187
+
echo "Access the \`result\` endpoint at [\`${RESULT_HOST}\`](${RESULT_HOST})." >> $GITHUB_STEP_SUMMARY
188
+
176
189
- name: Create or Update Comment with Deployment URL
177
190
uses: peter-evans/create-or-update-comment@v2
178
191
with:
@@ -186,29 +199,28 @@ jobs:
186
199
187
200
1. Download and install the Uffizzi CLI from https://docs.uffizzi.com/install
188
201
2. Login to Uffizzi: `uffizzi login`
189
-
3a. Update your kubeconfig: `uffizzi cluster update-kubeconfig --name pr-${{ github.event.pull_request.number }}`. This command will update your local kubeconfig.
202
+
3a. Update your kubeconfig: `uffizzi cluster update-kubeconfig --name pr-${{ github.event.pull_request.number }}`. This command will update your local `~/.kube/config`.
190
203
If you want to provide an alternate location follow 3b (the next step) instead.
191
204
3b. Update your kubeconfig: `uffizzi cluster update-kubeconfig --name pr-${{ github.event.pull_request.number }} --kubeconfig=[KUBECONFIG]`, replacing `[KUBECONFIG]` with the path to your kubeconfig file.
192
-
After updating your kubeconfig, you can manage your cluster with `kubectl`.
205
+
After updating your kubeconfig, you can manage your cluster with `kubectl`, `kustomize`, `helm`, and other tools that use kubeconfig files: `kubectl get namespace --kubeconfig [KUBECONFIG]`
193
206
194
207
Access the vote endpoint at https://pr-${{ github.event.number }}-vote.app.qa-gke.uffizzi.com
195
208
Access the result endpoint at https://pr-${{ github.event.number }}-result.app.qa-gke.uffizzi.com
Copy file name to clipboardExpand all lines: README.md
+12-10
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,14 @@
1
1
# Uffizzi Quickstart for Kubernetes (~ 1 minute)
2
2
3
-
Go from pull request to Uffizzi Ephemeral Environment in less than one minute. This quickstart will create a virtual Kubernetes cluster on Uffizzi Cloud and deploy a sample microservices application from this repository. Once created, you can connect to the cluster with the Uffizzi CLI, then manage the cluster via Kubectl. You can clean up the cluster by closing the pull request or manually deleting it via the Uffizzi CLI.
3
+
Go from pull request to Uffizzi Ephemeral Environment in less than one minute. This quickstart will create a virtual Kubernetes cluster on Uffizzi Cloud and deploy a sample microservices application from this repository. Once created, you can connect to the cluster with the Uffizzi CLI, then manage the cluster via `kubectl`, `kustomize`, `helm`, and other tools. You can clean up the cluster by closing the pull request or manually deleting it via the Uffizzi CLI.
### 5. Access the `vote` and `result` HTTP services
27
29
28
30
Additionally, the app endpoints can be found on the action summary page. Under the Actions section of the forked repository, open up the latest completed action. Within the completed action, open up the summary section. Copy and paste the vote and result endpoints within the action summary
29
31
@@ -38,7 +40,7 @@ The PR will trigger a [GitHub Actions workflow](.github/workflows/uffizzi-cluste
38
40
39
41
### Configuration
40
42
41
-
Ephemeral Environments are configured with [Kubernetes manifests](kustomization.yaml) that describe the application components and a [GitHub Actions workflow](.github/workflows/uffizzi-cluster.yaml) that includes a series of jobs triggered by a `pull_request` event and subsequent `push` events:
43
+
Ephemeral Environments are configured with [Kubernetes manifests](manifests/) that describe the application components and a [GitHub Actions workflow](.github/workflows/uffizzi-cluster.yaml) that includes a series of jobs triggered by a `pull_request` event and subsequent `push` events:
42
44
43
45
1.[Build and push the voting-app images](https://github.com/UffizziCloud/quickstart-k8s/blob/fc27d539d98fd602039a4259cafe9dd2ccf65dc5/.github/workflows/reusable.yml#L11C1-L90C28)
44
46
2.[Create the Uffizzi cluster using the uffizzi-cli](https://github.com/UffizziCloud/quickstart-k8s/blob/fc27d539d98fd602039a4259cafe9dd2ccf65dc5/.github/workflows/reusable.yml#L92C1-L102C22)
@@ -61,8 +63,8 @@ The application defined by this repo allows users to vote for dogs or cats and s
0 commit comments