Deliver the lab from manifests rendered from score-lab.yaml

deploy/lab is rendered by score-k8s with the platform's provisioners and replaces the
hand-written deploy/manifests. The lab build workflow now renders and commits it after the build.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-10-01 12:53:21 +01:00
parent 30dc34e700
commit bddd387bab
12 changed files with 255 additions and 113 deletions

View File

@@ -0,0 +1,88 @@
apiVersion: apps/v1
kind: Deployment
metadata:
annotations:
k8s.score.dev/workload-name: demo-vivek-11
labels:
app.kubernetes.io/instance: demo-vivek-11
app.kubernetes.io/managed-by: score-k8s
app.kubernetes.io/name: demo-vivek-11
name: demo-vivek-11
namespace: demo-vivek-11
spec:
revisionHistoryLimit: 3
selector:
matchLabels:
app.kubernetes.io/instance: demo-vivek-11
strategy: {}
template:
metadata:
annotations:
k8s.score.dev/workload-name: demo-vivek-11
labels:
app.kubernetes.io/instance: demo-vivek-11
app.kubernetes.io/managed-by: score-k8s
app.kubernetes.io/name: demo-vivek-11
spec:
automountServiceAccountToken: false
containers:
- env:
- name: OTEL_EXPORTER_OTLP_ENDPOINT
value: http://otel-collector.monitoring.svc.cluster.local:4318
- name: OTEL_EXPORTER_OTLP_PROTOCOL
value: http/protobuf
- name: OTEL_LOGS_EXPORTER
value: none
- name: OTEL_METRICS_EXPORTER
value: otlp
- name: OTEL_RESOURCE_ATTRIBUTES
value: service.name=demo-vivek-11
- name: OTEL_SERVICE_NAME
value: demo-vivek-11
- name: OTEL_TRACES_EXPORTER
value: otlp
image: cruciblecoredevacr.azurecr.io/demo-vivek-11:9bc0bce407eb2e817eb2d8ccb17a03b51489893e
livenessProbe:
httpGet:
path: /actuator/health
port: 8080
name: main
readinessProbe:
httpGet:
path: /actuator/health
port: 8080
resources:
limits:
memory: 1Gi
requests:
cpu: 250m
memory: 512Mi
securityContext:
allowPrivilegeEscalation: false
capabilities:
drop:
- ALL
privileged: false
readOnlyRootFilesystem: true
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
startupProbe:
failureThreshold: 36
httpGet:
path: /actuator/health
port: 8080
periodSeconds: 5
volumeMounts:
- mountPath: /tmp
name: crucible-tmp
enableServiceLinks: false
securityContext:
runAsNonRoot: true
seccompProfile:
type: RuntimeDefault
volumes:
- emptyDir:
sizeLimit: 256Mi
name: crucible-tmp
status: {}

View File

@@ -0,0 +1,27 @@
apiVersion: gateway.networking.k8s.io/v1
kind: HTTPRoute
metadata:
annotations:
crucible.kyndryl.com/public-hostname: demo-vivek-11.apps.lab.crucible.kyndemo.live
k8s.score.dev/resource-uid: workload-ingress.default#demo-vivek-11.ingress
k8s.score.dev/source-workload: demo-vivek-11
labels:
app.kubernetes.io/managed-by: score-k8s
app.kubernetes.io/name: demo-vivek-11
name: demo-vivek-11
namespace: demo-vivek-11
spec:
hostnames:
- demo-vivek-11.int.apps.lab.crucible.kyndemo.live
parentRefs:
- name: pe-gatewayapi-int
namespace: gatewayapi
sectionName: http
rules:
- backendRefs:
- name: demo-vivek-11
port: 80
matches:
- path:
type: PathPrefix
value: /

View File

@@ -0,0 +1,8 @@
# Generated by crucible-platform-score-provisioners. Do not edit: re-render instead.
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- deployment-demo-vivek-11.yaml
- httproute-demo-vivek-11.yaml
- networkpolicy-demo-vivek-11.yaml
- service-demo-vivek-11.yaml

View File

@@ -0,0 +1,20 @@
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
labels:
app.kubernetes.io/managed-by: score-k8s
app.kubernetes.io/name: demo-vivek-11
name: demo-vivek-11
namespace: demo-vivek-11
spec:
ingress:
- from:
- podSelector: {}
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: gatewayapi
podSelector:
matchLabels:
app.kubernetes.io/instance: demo-vivek-11
policyTypes:
- Ingress

View File

@@ -0,0 +1,21 @@
apiVersion: v1
kind: Service
metadata:
annotations:
k8s.score.dev/workload-name: demo-vivek-11
labels:
app.kubernetes.io/instance: demo-vivek-11
app.kubernetes.io/managed-by: score-k8s
app.kubernetes.io/name: demo-vivek-11
name: demo-vivek-11
namespace: demo-vivek-11
spec:
ports:
- name: web
port: 80
protocol: TCP
targetPort: 8080
selector:
app.kubernetes.io/instance: demo-vivek-11
status:
loadBalancer: {}