github.com/solo-io/cue@v0.4.7/doc/tutorial/kubernetes/quick/services/frontend/kube.cue (about) 1 package kube 2 3 #Component: "frontend" 4 5 deployment: [string]: spec: template: { 6 metadata: annotations: { 7 "prometheus.io.scrape": "true" 8 "prometheus.io.port": "\(spec.containers[0].ports[0].containerPort)" 9 } 10 spec: containers: [{ 11 ports: [{containerPort: *7080 | int}] // 7080 is the default 12 }] 13 }