eduk8s-labs / lab-spring-boot-k8s-getting-started Goto Github PK
View Code? Open in Web Editor NEWGetting Started with Spring Boot on Kubernetes
License: Apache License 2.0
Getting Started with Spring Boot on Kubernetes
License: Apache License 2.0
Launched Spring Boot lab from https://hub.prod.eduk8s.io/
I noticed errors in the (Firefox) dev console when I clicked on the link which triggers the Spring Initializr extension in VS Code.
...maybe even turn it into proper checkboxes?
The Initializr extension in the IDE offers two options at the end: "Open" and "Add to Workspace". The "Open" button opens a new workspace, which is a new tab in code-server, and takes you out of the eduk8s lab. Ideally we'd like to simply disable that button. An alternative would be to fix code-server so it doesn't open a new tab, but they have shown themselves to be against that option in the upstream issue tracker.
Improved UX ideas:
@GetMapping
)@RestContoller
annotation to an existing class, and organizing imports)From intro:
Spring Boot is a great way to write an application in Java. This workshop shows you how to create a Spring Boot application and run it in Kubernetes with as little fuss and bother as possible. And there's no YAML. To do this we need to do three things:
I suggest removing the bit that says: And there's no YAML.
From lesson page 4:
The small
session budget configures limitranger defaults for containers to 256MB memory, which is too small. Deployments fails with the following error:
allocated memory is greater than 256M available for allocation: -XX:MaxDirectMemorySize=10M, -XX:MaxMetaspaceSize=94141K, -XX:ReservedCodeCacheSize=240M, -Xss1M x 250 threads
I suggest tuning this to 1024MB in the workshop.yaml, or figuring out a way to set explicit (higher) limits in the deployment container spec.
The IDE is more comfortable for developers than the bare terminal, and it's a "one stop shop" for workshop activities. If it's not too expensive to implement, it would be good to have the option to execute command line snippets in the IDE.
Tried this:
<pre class="pastable" data-file="/home/eduk8s/exercises/demo/deployment.yaml" data-yaml-path="spec.template.spec.containers[0]">
...
</pre>
But it didn't do anything. I need to select the element (by index or name or something).
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.