Compare commits
4 Commits
d49897c9d5
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 585b9d3f55 | |||
| 42652039fd | |||
| 78ed7d21bb | |||
| 182be6521b |
52
.gitea/workflows/techdocs.yml
Normal file
52
.gitea/workflows/techdocs.yml
Normal file
@@ -0,0 +1,52 @@
|
||||
name: Build and Publish TechDocs
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
paths:
|
||||
- "docs/**"
|
||||
- "mkdocs.yml"
|
||||
- "catalog-info.yaml"
|
||||
workflow_dispatch: {}
|
||||
|
||||
env:
|
||||
AZURE_FEDERATED_TOKEN_FILE: /var/run/secrets/azure/tokens/azure-identity-token
|
||||
AZURE_ACCOUNT_NAME: "bstagecjotdevsttechdocs"
|
||||
ENTITY_NAMESPACE: default
|
||||
ENTITY_KIND: component
|
||||
ENTITY_NAME: test-alex-1-1
|
||||
|
||||
jobs:
|
||||
build-and-publish:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
id-token: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
apt-get update -qq && apt-get install -y python3-pip
|
||||
pip3 install mkdocs-techdocs-core==1.*
|
||||
npm install -g @techdocs/cli
|
||||
- name: Build TechDocs site
|
||||
run: techdocs-cli generate --source-dir . --output-dir ./site --no-docker --verbose
|
||||
- name: Install Azure CLI
|
||||
run: |
|
||||
if ! command -v az &>/dev/null; then curl -sL https://aka.ms/InstallAzureCLIDeb | bash; fi
|
||||
- name: Azure login (OIDC)
|
||||
run: |
|
||||
az login \
|
||||
--service-principal \
|
||||
--username "$AZURE_CLIENT_ID" \
|
||||
--tenant "$AZURE_TENANT_ID" \
|
||||
--federated-token "$(cat $AZURE_FEDERATED_TOKEN_FILE)"
|
||||
- name: Publish TechDocs site
|
||||
run: |
|
||||
techdocs-cli publish \
|
||||
--publisher-type azureBlobStorage \
|
||||
--storage-name "techdocs" \
|
||||
--azureAccountName "$AZURE_ACCOUNT_NAME" \
|
||||
--entity "$ENTITY_NAMESPACE/$ENTITY_KIND/$ENTITY_NAME"
|
||||
30
Dockerfile
Normal file
30
Dockerfile
Normal file
@@ -0,0 +1,30 @@
|
||||
# Multi-stage Dockerfile for Spring Boot Application
|
||||
FROM maven:3.9-eclipse-temurin-17 AS build
|
||||
WORKDIR /app
|
||||
|
||||
# Copy dependency files first for better caching
|
||||
COPY pom.xml .
|
||||
RUN mvn dependency:go-offline -B
|
||||
|
||||
# Copy source code and build
|
||||
COPY src ./src
|
||||
RUN mvn clean package -DskipTests
|
||||
|
||||
# Runtime stage - lean JRE for Spring Boot executable JAR (~200MB vs ~500MB Tomcat)
|
||||
FROM mcr.microsoft.com/openjdk/jdk:17-ubuntu
|
||||
WORKDIR /app
|
||||
|
||||
# Create non-root user for security
|
||||
RUN groupadd -g 1001 appuser && useradd -u 1001 -g appuser -s /bin/sh appuser && \
|
||||
chown -R appuser:appuser /app
|
||||
USER appuser
|
||||
|
||||
COPY --from=build /app/target/*.jar app.jar
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
# Health check
|
||||
HEALTHCHECK --interval=30s --timeout=3s --start-period=30s --retries=3 \
|
||||
CMD wget --no-verbose --tries=1 --spider http://localhost:8080/actuator/health || exit 1
|
||||
|
||||
CMD ["java", "-jar", "app.jar"]
|
||||
@@ -1,69 +1,48 @@
|
||||
|
||||
apiVersion: backstage.io/v1alpha1
|
||||
kind: Component
|
||||
metadata:
|
||||
name: test-alex-1-1
|
||||
description: 'test-alex-1-1 — renovated onto the crucible platform orchestrator'
|
||||
annotations:
|
||||
gitea.kyndemo.live/project-slug: validate/test-alex-1-1
|
||||
gitea.kyndemo.live/repo-slug: validate/test-alex-1-1
|
||||
# The orchestrator names each environment's namespace ns-xxxxx at deploy time, so a
|
||||
# namespace can never be known here -- pinning one only hides the workload. Omitted
|
||||
# deliberately: the Kubernetes plugin then searches every namespace it is given.
|
||||
#
|
||||
# kubernetes-id matches the label the score-workload module propagates from the Score
|
||||
# metadata.labels block. The previous selector, app.humanitec.io/name=..., was a
|
||||
# Humanitec SaaS label that nothing on this platform has ever set.
|
||||
backstage.io/kubernetes-id: test-alex-1-1
|
||||
backstage.io/techdocs-ref: dir:.
|
||||
# Vestigial key names, live values. These drive the Orchestrator tab, which reads
|
||||
# humanitec.dev/orgId and humanitec.dev/projectId; renaming the keys would break every
|
||||
# entity already in the catalog, so the names stay and the values point at crucible.
|
||||
humanitec.dev/orgId: crucible
|
||||
# THE PROJECT IS THE APPLICATION. This was `apps-cluster`, a single project shared by
|
||||
# every renovated app, which is why the Orchestrator tab on any one component listed the
|
||||
# whole estate -- the tab shows a project's environments, and every app's environment
|
||||
# lived in that one project. Now each app owns a project, so the tab shows this app's
|
||||
# stages and nothing else. The deploy workflow creates the project, its runner rule and
|
||||
# its environments on first deploy.
|
||||
humanitec.dev/projectId: test-alex-1-1
|
||||
# The environments are now STAGES of this application -- dev, staging, prod -- rather
|
||||
# than one environment named after the component.
|
||||
humanitec.dev/appId: test-alex-1-1
|
||||
cjot.io/target-domain: apps
|
||||
gitea.kyndemo.live/project-slug: validate/test-alex-1-1
|
||||
gitea.kyndemo.live/repo-slug: validate/test-alex-1-1
|
||||
grafana.com/dashboard-url: https://grafana.kyndemo.live/d/otel-app-observability-v2/opentelemetry-application-observability?orgId=1&var-app=test-alex-1-1
|
||||
grafana/alert-label-selector: app=test-alex-1-1
|
||||
grafana/dashboard-selector: uid == 'otel-app-observability-v2'
|
||||
grafana/grafana-instance: default
|
||||
humanitec.dev/appId: test-alex-1-1
|
||||
humanitec.dev/orgId: crucible
|
||||
humanitec.dev/projectId: test-alex-1-1
|
||||
sonarqube.org/project-key: test-alex-1-1
|
||||
grafana/grafana-instance: "default"
|
||||
grafana/alert-label-selector: "app=test-alex-1-1"
|
||||
grafana/dashboard-selector: "uid == 'otel-app-observability-v2'"
|
||||
grafana.com/dashboard-url: "https://grafana.kyndemo.live/d/otel-app-observability-v2/opentelemetry-application-observability?orgId=1&var-app=test-alex-1-1"
|
||||
tags:
|
||||
- platform-orchestrator
|
||||
- renovation
|
||||
- postgresql
|
||||
- blob-storage
|
||||
description: "test-alex-1-1 \u2014 renovated onto the crucible platform orchestrator"
|
||||
links:
|
||||
# console.humanitec.dev is the dead SaaS. This is the live crucible console, deep-linked
|
||||
# to the per-application environment the deploy workflow creates.
|
||||
- url: https://console.dev.orchestrator.crucible.kyndemo.live/orgs/crucible/projects/test-alex-1-1/environments/dev
|
||||
title: Orchestrator Console
|
||||
icon: dashboard
|
||||
- url: https://test-alex-1-1.apps.dev.crucible.kyndemo.live
|
||||
title: Live Application
|
||||
icon: web
|
||||
- url: https://gitea.kyndemo.live/validate/test-alex-1-1
|
||||
title: Source Repository
|
||||
icon: github
|
||||
- url: https://gitea.kyndemo.live/validate/test-alex-1-1/actions
|
||||
title: CI/CD Pipelines
|
||||
icon: code
|
||||
- url: https://grafana.kyndemo.live/d/otel-app-observability-v2/opentelemetry-application-observability?orgId=1&var-app=test-alex-1-1
|
||||
title: Grafana Dashboard
|
||||
icon: dashboard
|
||||
- icon: dashboard
|
||||
title: Orchestrator Console
|
||||
url: https://console.dev.orchestrator.crucible.kyndemo.live/orgs/crucible/projects/test-alex-1-1/environments/dev
|
||||
- icon: web
|
||||
title: Live Application
|
||||
url: https://test-alex-1-1.apps.dev.crucible.kyndemo.live
|
||||
- icon: github
|
||||
title: Source Repository
|
||||
url: https://gitea.kyndemo.live/validate/test-alex-1-1
|
||||
- icon: code
|
||||
title: CI/CD Pipelines
|
||||
url: https://gitea.kyndemo.live/validate/test-alex-1-1/actions
|
||||
- icon: dashboard
|
||||
title: Grafana Dashboard
|
||||
url: https://grafana.kyndemo.live/d/otel-app-observability-v2/opentelemetry-application-observability?orgId=1&var-app=test-alex-1-1
|
||||
name: test-alex-1-1
|
||||
tags:
|
||||
- platform-orchestrator
|
||||
- renovation
|
||||
- postgresql
|
||||
- blob-storage
|
||||
spec:
|
||||
type: service
|
||||
dependsOn:
|
||||
- resource:default/cjot-aks
|
||||
- resource:default/ho-v2-postgresql
|
||||
- resource:default/ho-v2-storage-account
|
||||
lifecycle: experimental
|
||||
owner: platform-engineering
|
||||
dependsOn:
|
||||
- resource:default/cjot-aks
|
||||
- resource:default/ho-v2-postgresql
|
||||
- resource:default/ho-v2-storage-account
|
||||
type: service
|
||||
|
||||
25
docs/api.md
Normal file
25
docs/api.md
Normal file
@@ -0,0 +1,25 @@
|
||||
# API Reference
|
||||
|
||||
## Endpoints
|
||||
|
||||
### Health Check
|
||||
|
||||
```
|
||||
GET /health
|
||||
```
|
||||
|
||||
**Response:**
|
||||
```json
|
||||
{"status": "UP", "service": "test-alex-1-1"}
|
||||
```
|
||||
|
||||
### Root
|
||||
|
||||
```
|
||||
GET /
|
||||
```
|
||||
|
||||
**Response:**
|
||||
```json
|
||||
{"service": "test-alex-1-1", "description": "Modernized test-alex-1-1 service", "version": "1.0.0"}
|
||||
```
|
||||
15
docs/architecture.md
Normal file
15
docs/architecture.md
Normal file
@@ -0,0 +1,15 @@
|
||||
# Architecture
|
||||
|
||||
## Service Design
|
||||
|
||||
test-alex-1-1 is a microservice following cloud-native patterns.
|
||||
|
||||
## Technology Stack
|
||||
|
||||
- **Runtime**: Java Spring Boot
|
||||
- **Deployment**: Humanitec Platform Orchestrator
|
||||
- **CI/CD**: Gitea Actions → ACR → Humanitec
|
||||
|
||||
## Dependencies
|
||||
|
||||
See `score.yaml` for external resource dependencies.
|
||||
32
docs/index.md
Normal file
32
docs/index.md
Normal file
@@ -0,0 +1,32 @@
|
||||
# test-alex-1-1
|
||||
|
||||
Modernized test-alex-1-1 service
|
||||
|
||||
## Overview
|
||||
|
||||
This service is built with **Java Spring Boot** and follows the Golden Path architecture patterns.
|
||||
|
||||
### Key Features
|
||||
|
||||
- 🚀 Production-ready configuration
|
||||
- 📊 Prometheus metrics exposed
|
||||
- 🏥 Health check endpoints
|
||||
- 🔒 Security scanning in CI/CD
|
||||
- 📦 Containerized deployment
|
||||
|
||||
## Quick Start
|
||||
|
||||
```bash
|
||||
git clone https://gitea.kyndemo.live/kyndryl-demos/test-alex-1-1.git
|
||||
cd test-alex-1-1
|
||||
```
|
||||
|
||||
## Monitoring
|
||||
|
||||
- **Metrics**: Prometheus metrics at `/metrics`
|
||||
- **Health**: `/health`
|
||||
- **Grafana**: [View Dashboard](https://grafana.kyndemo.live/d/app-test-alex-1-1)
|
||||
|
||||
## Support
|
||||
|
||||
Contact the Platform Engineering team.
|
||||
47
docs/migration-plan.md
Normal file
47
docs/migration-plan.md
Normal file
@@ -0,0 +1,47 @@
|
||||
# Modernization Plan for test-alex-1-1
|
||||
|
||||
## Application Type
|
||||
Java Application
|
||||
|
||||
## Selected Modernization Strategy
|
||||
- **Migration Approach**: containerize-optimize
|
||||
- **Target Platform**: orchestrator
|
||||
- **Observability**: ENABLED (Prometheus metrics, health checks, tracing)
|
||||
- **Security Scanning**: ENABLED (Trivy vulnerability scanning)
|
||||
|
||||
## Discovery Summary
|
||||
### Discovery Report
|
||||
|
||||
#### Application Overview
|
||||
- **Type**: Java-based application
|
||||
- **Framework**: Spring Boot
|
||||
- **Build Tools**: Maven and Gradle
|
||||
- **Primary Purpose**: Likely a web application, as indicated by the presence of REST API endpoints and web-related dependencies.
|
||||
|
||||
#### Technology Stack
|
||||
- **Language**: Java
|
||||
- **Framework**: Spring Boot
|
||||
- **Build Tools**: Maven and Gradle
|
||||
- **Database**: H2, MySQL, PostgreSQL (based on dependencies)
|
||||
- **Caching**: Caffeine, javax.cache (cache-api)
|
||||
- ...
|
||||
|
||||
## Generated Artifacts
|
||||
1. **Dockerfile**: Optimized with health checks and metrics endpoints
|
||||
2. **score.yaml**: Platform intent with service ports and DNS resource
|
||||
3. **CI Workflow**: Automated build/push to ACR with Trivy security scanning
|
||||
|
||||
## Next Steps
|
||||
1. Review and customize generated artifacts
|
||||
2. Test container build and run
|
||||
3. Deploy to development environment using score.yaml
|
||||
4. Validate application functionality
|
||||
5. Promote to staging/production via Humanitec
|
||||
|
||||
## Migration Strategy Details
|
||||
|
||||
### Containerize Optimize
|
||||
Add cloud-native patterns: health checks, metrics, optimized base images.
|
||||
|
||||
### Platform: orchestrator
|
||||
score.yaml optimized for Azure Container Apps with managed scaling and Azure-specific configuration.
|
||||
13
mkdocs.yml
Normal file
13
mkdocs.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
site_name: test-alex-1-1
|
||||
site_description: Modernized test-alex-1-1 service
|
||||
|
||||
nav:
|
||||
- Home: index.md
|
||||
- Architecture: architecture.md
|
||||
- API Reference: api.md
|
||||
|
||||
plugins:
|
||||
- techdocs-core
|
||||
|
||||
theme:
|
||||
name: material
|
||||
188
openapi.yaml
Normal file
188
openapi.yaml
Normal file
@@ -0,0 +1,188 @@
|
||||
openapi: 3.0.3
|
||||
info:
|
||||
title: test-alex-1-1
|
||||
description: Modernized test-alex-1-1 service
|
||||
version: 1.0.0
|
||||
servers:
|
||||
- url: https://test-alex-1-1.kyndemo.live
|
||||
description: Production
|
||||
- url: http://localhost:8080
|
||||
description: Local development
|
||||
paths:
|
||||
/health:
|
||||
get:
|
||||
summary: Health check
|
||||
operationId: getHealth
|
||||
tags:
|
||||
- System
|
||||
responses:
|
||||
'200':
|
||||
description: Healthy
|
||||
/vets.html:
|
||||
get:
|
||||
summary: GET /vets.html
|
||||
operationId: getVets.html
|
||||
responses:
|
||||
'200':
|
||||
description: Success
|
||||
'400':
|
||||
description: Bad request
|
||||
/owners/{ownerId}/owners/{ownerId}:
|
||||
get:
|
||||
summary: GET /owners/{ownerId}/owners/{ownerId}
|
||||
operationId: getOwners_ownerId_owners_ownerId
|
||||
responses:
|
||||
'200':
|
||||
description: Success
|
||||
'400':
|
||||
description: Bad request
|
||||
parameters:
|
||||
- name: ownerId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- name: ownerId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
/owners/{ownerId}/pets/new:
|
||||
get:
|
||||
summary: GET /owners/{ownerId}/pets/new
|
||||
operationId: getOwners_ownerId_pets_new
|
||||
responses:
|
||||
'200':
|
||||
description: Success
|
||||
'400':
|
||||
description: Bad request
|
||||
parameters:
|
||||
- name: ownerId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
/owners/{ownerId}/pets/{petId}/edit:
|
||||
get:
|
||||
summary: GET /owners/{ownerId}/pets/{petId}/edit
|
||||
operationId: getOwners_ownerId_pets_petId_edit
|
||||
responses:
|
||||
'200':
|
||||
description: Success
|
||||
'400':
|
||||
description: Bad request
|
||||
parameters:
|
||||
- name: ownerId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- name: petId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
/owners/{ownerId}/pets/{petId}/visits/new:
|
||||
get:
|
||||
summary: GET /owners/{ownerId}/pets/{petId}/visits/new
|
||||
operationId: getOwners_ownerId_pets_petId_visits_new
|
||||
responses:
|
||||
'200':
|
||||
description: Success
|
||||
'400':
|
||||
description: Bad request
|
||||
parameters:
|
||||
- name: ownerId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
- name: petId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
/owners/new:
|
||||
get:
|
||||
summary: GET /owners/new
|
||||
operationId: getOwners_new
|
||||
responses:
|
||||
'200':
|
||||
description: Success
|
||||
'400':
|
||||
description: Bad request
|
||||
/owners/find:
|
||||
get:
|
||||
summary: GET /owners/find
|
||||
operationId: getOwners_find
|
||||
responses:
|
||||
'200':
|
||||
description: Success
|
||||
'400':
|
||||
description: Bad request
|
||||
/owners:
|
||||
get:
|
||||
summary: GET /owners
|
||||
operationId: getOwners
|
||||
responses:
|
||||
'200':
|
||||
description: Success
|
||||
'400':
|
||||
description: Bad request
|
||||
/owners/{ownerId}/edit:
|
||||
get:
|
||||
summary: GET /owners/{ownerId}/edit
|
||||
operationId: getOwners_ownerId_edit
|
||||
responses:
|
||||
'200':
|
||||
description: Success
|
||||
'400':
|
||||
description: Bad request
|
||||
parameters:
|
||||
- name: ownerId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
/owners/{ownerId}:
|
||||
get:
|
||||
summary: GET /owners/{ownerId}
|
||||
operationId: getOwners_ownerId
|
||||
responses:
|
||||
'200':
|
||||
description: Success
|
||||
'400':
|
||||
description: Bad request
|
||||
parameters:
|
||||
- name: ownerId
|
||||
in: path
|
||||
required: true
|
||||
schema:
|
||||
type: string
|
||||
/:
|
||||
get:
|
||||
summary: GET /
|
||||
operationId: getRoot
|
||||
responses:
|
||||
'200':
|
||||
description: Success
|
||||
'400':
|
||||
description: Bad request
|
||||
/oups:
|
||||
get:
|
||||
summary: GET /oups
|
||||
operationId: getOups
|
||||
responses:
|
||||
'200':
|
||||
description: Success
|
||||
'400':
|
||||
description: Bad request
|
||||
/actuator/prometheus:
|
||||
get:
|
||||
summary: Prometheus metrics
|
||||
operationId: getMetrics
|
||||
tags:
|
||||
- System
|
||||
responses:
|
||||
'200':
|
||||
description: text/plain; Prometheus exposition format
|
||||
90
score.yaml
90
score.yaml
@@ -1,63 +1,41 @@
|
||||
apiVersion: score.dev/v1b1
|
||||
metadata:
|
||||
name: test-alex-1-1
|
||||
labels:
|
||||
app: test-alex-1-1
|
||||
|
||||
containers:
|
||||
main:
|
||||
test-alex-1-1:
|
||||
image: .
|
||||
variables:
|
||||
# The Watcher's OTel work lands in overlays/otel/, which only ArgoCD reads. On the
|
||||
# orchestrator path nothing consumes that overlay, so without these variables the
|
||||
# renovated app emits no telemetry at all and never appears in Grafana.
|
||||
OTEL_SERVICE_NAME: "test-alex-1-1"
|
||||
OTEL_EXPORTER_OTLP_ENDPOINT: "http://otel-collector.monitoring.svc.cluster.local:4318"
|
||||
OTEL_EXPORTER_OTLP_PROTOCOL: "http/protobuf"
|
||||
OTEL_RESOURCE_ATTRIBUTES: "service.name=test-alex-1-1"
|
||||
OTEL_METRICS_EXPORTER: "otlp"
|
||||
OTEL_TRACES_EXPORTER: "otlp"
|
||||
OTEL_LOGS_EXPORTER: "none"
|
||||
DATABASE_URL: "postgresql://${resources.db.username}:${resources.db.password}@${resources.db.host}:${resources.db.port}/${resources.db.name}"
|
||||
STORAGE_CONTAINER_NAME: "${resources.storage.container_name}"
|
||||
STORAGE_ACCOUNT_NAME: "${resources.storage.storage_account_name}"
|
||||
BLOB_ENDPOINT: "${resources.storage.blob_endpoint}"
|
||||
|
||||
service:
|
||||
ports:
|
||||
web:
|
||||
port: 80
|
||||
targetPort: 8080
|
||||
|
||||
SPRING_DATASOURCE_PASSWORD: ${resources.db.password}
|
||||
SPRING_DATASOURCE_URL: jdbc:postgresql://${resources.db.host}:${resources.db.port}/${resources.db.name}
|
||||
SPRING_DATASOURCE_USERNAME: ${resources.db.username}
|
||||
OTEL_SERVICE_NAME: test-alex-1-1
|
||||
OTEL_EXPORTER_OTLP_ENDPOINT: http://otel-collector.monitoring.svc.cluster.local:4318
|
||||
OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf
|
||||
OTEL_RESOURCE_ATTRIBUTES: service.name=test-alex-1-1,app=test-alex-1-1
|
||||
OTEL_METRICS_EXPORTER: otlp
|
||||
OTEL_TRACES_EXPORTER: otlp
|
||||
OTEL_LOGS_EXPORTER: none
|
||||
metadata:
|
||||
annotations:
|
||||
prometheus.io/path: /metrics
|
||||
prometheus.io/port: '8080'
|
||||
prometheus.io/scrape: 'true'
|
||||
labels:
|
||||
app: test-alex-1-1
|
||||
backstage.io/kubernetes-id: test-alex-1-1
|
||||
name: test-alex-1-1
|
||||
resources:
|
||||
env:
|
||||
type: environment
|
||||
|
||||
# Gives the renovated workload a public HTTPS URL. Without this the deploy still goes
|
||||
# green and the pod still runs -- there is simply no Ingress, no certificate and no
|
||||
# hostname, so the demo's payoff (curl the renovated app) has nothing to hit.
|
||||
#
|
||||
# hostname is hardcoded to the apps domain deliberately: it is the only domain the apps
|
||||
# cluster serves, and both the wildcard A record (*.apps.dev) and the cert-manager
|
||||
# ClusterIssuer are scoped to exactly it.
|
||||
#
|
||||
# service_port is the Score `service.ports.web.port` below (80), NOT the container port.
|
||||
# An Ingress naming a Service or port that does not exist fails at neither plan nor
|
||||
# apply -- it surfaces only as nginx answering 503.
|
||||
#
|
||||
# CAVEAT: modernization-factory's generate_score_yaml rewrites BOTH `port` and
|
||||
# `targetPort` to the detected application port whenever that port is not 8080. An app
|
||||
# on 3000 therefore ends up with a Service on 3000 and this Ingress pointing at a port
|
||||
# that no longer exists. Apps already listening on 8080 (Spring PetClinic among them)
|
||||
# skip that patch entirely and are unaffected.
|
||||
ingress:
|
||||
type: workload-ingress
|
||||
params:
|
||||
name: test-alex-1-1
|
||||
hostname: test-alex-1-1.apps.dev.crucible.kyndemo.live
|
||||
service_name: test-alex-1-1
|
||||
service_port: 80
|
||||
db:
|
||||
type: postgres
|
||||
storage:
|
||||
type: azure-blob
|
||||
env:
|
||||
type: environment
|
||||
ingress:
|
||||
params:
|
||||
hostname: test-alex-1-1.apps.dev.crucible.kyndemo.live
|
||||
name: test-alex-1-1
|
||||
service_name: test-alex-1-1
|
||||
service_port: 8080
|
||||
type: workload-ingress
|
||||
service:
|
||||
ports:
|
||||
http:
|
||||
port: 8080
|
||||
targetPort: 8080
|
||||
|
||||
Reference in New Issue
Block a user