Add a Dockerfile to the directory with the jar file:
Dockerfile
# syntax=docker/dockerfile:1
FROM eclipse-temurin:17-jdk-jammy
| --- | |
| # Flux version: v0.27.0 | |
| # Components: source-controller | |
| apiVersion: v1 | |
| kind: Namespace | |
| metadata: | |
| labels: | |
| app.kubernetes.io/instance: flux-system | |
| app.kubernetes.io/part-of: flux | |
| pod-security.kubernetes.io/warn: restricted |
| apiVersion: backstage.io/v1alpha1 | |
| kind: Component | |
| metadata: | |
| name: weatherforecast-steeltoe | |
| annotations: | |
| "backstage.io/kubernetes-label-selector": "app.kubernetes.io/part-of=weatherforecast-steeltoe" | |
| spec: | |
| type: service | |
| lifecycle: experimental | |
| owner: default-team |
| name: kubernetes-skaffold | |
| displayName: Spring Kubernetes Deployment using Skaffold | |
| description: Deploy a Spring Boot application using kustomize, off-the-shell kustomizations, and deploy using skaffold. | |
| iconUrl: https://icon-library.com/images/rick-sanchez-icon/rick-sanchez-icon-24.jpg | |
| maintainer: mpollack@vmware.com | |
| version: 1.0.0 | |
| tags: skaffold, kubernetes, spring | |
| commands: |- | |
| k8s new | |
| k8s update |
These instructions include running a local registry accessible from Kubernetes as well as from the
host development machine at registry.dev.svc.cluster.local:5000.
registry:2 container from Docker, listening on port 5000, and persisting images in the ~/.registry/storage directory.
| --- | |
| # Source: postgresql/templates/secrets.yaml | |
| apiVersion: v1 | |
| kind: Secret | |
| metadata: | |
| name: test-postgresql | |
| labels: | |
| app: postgresql | |
| chart: postgresql-8.9.6 | |
| release: "test" |
Using the latest 2.5.0.RELEASE version of the Helm Chart for Spring Cloud Data Flow.
Have the following installed: