Skip to content

Commit

Permalink
Updates to fix raw K8s deploy instructions and manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
pacphi committed Nov 7, 2024
1 parent 836f00a commit 3ea3590
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 8 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,7 @@ tsconfig.json
types.d.ts
node_modules
vite.*

# Tanzu Platform
.tanzu/
tanzu.yml
8 changes: 3 additions & 5 deletions docs/RUN.md
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ Edit the `build/classes/java/main/META-INF/jkube/kubernetes/sanford-ui-deploymen

You should replace occurrences of `YYYY.MM.DD` (e.g., 2024.10.28) with the latest available tag, and save your changes.

> Note: the image tag in Github CR will have a slightly different format (e.g., 20241105.1847.10602)
> Note: the image tag in Github CR will have a slightly different format (e.g., 20241106.1853.9926)
### Apply

Expand All @@ -224,12 +224,10 @@ kubectl apply -f build/classes/java/main/META-INF/jkube/kubernetes.yml
At this point you'd probably like to interact with sanford, huh? We need to setup port-forwarding, so execute:

```bash
kubectl port-forward service/sanford-ui 8081:8081
kubectl port-forward service/sanford-ui 8080:8080
```

Then visit `http://localhost:8081/actuator/info` in your favorite browser.

Consult the [ENDPOINTS.md](ENDPOINTS.md) documentation to learn about what else you can do.
Then visit `http://localhost:8080/` in your favorite browser.

When you're done, revisit the terminal where you started port-forwarding and press `Ctrl+C`.

Expand Down
6 changes: 3 additions & 3 deletions src/main/jkube/deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ spec:
- env:
- name: JAVA_OPTS
value: "-Djava.security.egd=file:///dev/urandom -XX:+UseZGC -XX:+UseStringDeduplication"
- name: DOCUMENT_SCHEME
- name: DOCUMENT_SERVICE_SCHEME
value: "http"
- name: DOCUMENT_HOST
- name: DOCUMENT_SERVICE_HOST
value: sanford.default.svc.cluster.local
- name: DOCUMENT_PORT
- name: DOCUMENT_SERVICE_PORT
value: "8080"
- name: SPRING_PROFILES_ACTIVE
value: default,cloud

0 comments on commit 3ea3590

Please sign in to comment.