Score
Capability
Labels
Define Labels that will be added to Pods or Services generated for the Workload.
humanitec.score.yaml
(
view on GitHub
)
:
apiVersion: humanitec.org/v1b1
spec:
# Set labels on the Kubernetes Deployment
deployment:
labels:
deploymentlabelkey: deploymentlabelvalue
# Set labels on the Kubernetes Pod
pod:
labels:
podlabelkey: podlabelvalue
# Set labels on the Kubernetes Service
service:
labels:
servicelabelkey: servicelabelvalue
score.yaml
(
view on GitHub
)
:
apiVersion: score.dev/v1b1
metadata:
name: my-workload
service:
ports:
http:
port: 80
targetPort: 8080
containers:
demo:
image: registry/my-image:1.0.0