Skip to content

Commit

Permalink
Add Spring Boot on Kubernetes workshop from separate repository using…
Browse files Browse the repository at this point in the history
… vendir.
  • Loading branch information
GrahamDumpleton committed Aug 1, 2022
1 parent 68d82e8 commit a5b8227
Show file tree
Hide file tree
Showing 5 changed files with 117 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ Workshops included are:

* [lab-containerizing-spring](workshops/lab-containerizing-spring) - A workshop
describing how to containerize a Spring Boot application and run it in docker.

* [lab-spring-boot-on-k8s](workshops/lab-spring-boot-on-k8s) - A workshop which
steps through creating a Spring Boot application, containerizing it, and
deploying it to Kubernetes.
4 changes: 4 additions & 0 deletions resources/trainingportal.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,7 @@ spec:
capacity: 1
expires: 15m
orphaned: 5m
- name: lab-spring-boot-on-k8s
capacity: 1
expires: 60m
orphaned: 5m
9 changes: 9 additions & 0 deletions vendir.lock.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
apiVersion: vendir.k14s.io/v1alpha1
directories:
- contents:
- githubRelease:
tag: "4.0"
url: https://api.github.com/repos/vmware-tanzu-labs/lab-spring-boot-on-k8s/releases/70829547
path: .
path: workshops/lab-spring-boot-on-k8s/resources
kind: LockConfig
12 changes: 12 additions & 0 deletions vendir.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: vendir.k14s.io/v1alpha1
kind: Config
directories:
- path: workshops/lab-spring-boot-on-k8s/resources
contents:
- path: .
githubRelease:
slug: vmware-tanzu-labs/lab-spring-boot-on-k8s
tag: "4.0"
assetNames:
- workshop.yaml
disableAutoChecksumValidation: true
88 changes: 88 additions & 0 deletions workshops/lab-spring-boot-on-k8s/resources/workshop.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
apiVersion: training.educates.dev/v1beta1
kind: Workshop
metadata:
name: lab-spring-boot-on-k8s
spec:
title: Spring Boot on Kubernetes
description: Introduction to Spring Boot on Kubernetes
workshop:
image: jdk17-environment:*
files:
- image:
url: ghcr.io/vmware-tanzu-labs/lab-spring-boot-on-k8s-files:4.0
includePaths:
- /workshop/**
- /exercises/**
- /README.md
- path: .m2
image:
url: ghcr.io/vmware-tanzu-labs/lab-spring-boot-on-k8s-maven:latest
session:
namespaces:
budget: large
security:
policy: baseline
resources:
memory: 2Gi
applications:
terminal:
enabled: true
layout: split
console:
enabled: true
vendor: octant
editor:
enabled: true
registry:
enabled: true
docker:
enabled: true
dashboards:
- name: Initializr
url: $(ingress_protocol)://initializr-$(session_namespace).$(ingress_domain)
ingresses:
- name: initializr
protocol: http
host: initializr.$(workshop_namespace).svc.cluster.local
port: 8080
environment:
objects:
- apiVersion: apps/v1
kind: Deployment
metadata:
name: initializr
labels:
app: initializr
spec:
replicas: 1
selector:
matchLabels:
app: initializr
template:
metadata:
labels:
app: initializr
spec:
containers:
- name: dashboard
image: ghcr.io/vmware-tanzu-labs/educates-spring-initializr:2.0
imagePullPolicy: Always
ports:
- name: 8080-tcp
containerPort: 8080
protocol: TCP
- apiVersion: v1
kind: Service
metadata:
name: initializr
labels:
app: initializr
spec:
type: ClusterIP
selector:
app: initializr
ports:
- name: 8080-tcp
port: 8080
protocol: TCP
targetPort: 8080

0 comments on commit a5b8227

Please sign in to comment.