github.com/solo-io/cue@v0.4.7/doc/tutorial/kubernetes/quick/services/infra/events/kube.cue (about) 1 package kube 2 3 service: events: spec: ports: [{ 4 name: "grpc" 5 }] 6 deployment: events: spec: { 7 replicas: 2 8 template: { 9 metadata: annotations: { 10 "prometheus.io.scrape": "true" 11 "prometheus.io.port": "7080" 12 } 13 spec: { 14 affinity: podAntiAffinity: requiredDuringSchedulingIgnoredDuringExecution: [{ 15 labelSelector: matchExpressions: [{ 16 key: "app" 17 operator: "In" 18 values: [ 19 "events", 20 ] 21 }] 22 topologyKey: "kubernetes.io/hostname" 23 }] 24 volumes: [{ 25 name: "secret-volume" 26 secret: secretName: "biz-secrets" 27 }] 28 containers: [{ 29 image: "gcr.io/myproj/events:v0.1.31" 30 ports: [{ 31 containerPort: 7080 32 }, { 33 containerPort: 7788 34 }] 35 args: [ 36 "-cert=/etc/ssl/server.pem", 37 "-key=/etc/ssl/server.key", 38 "-grpc=:7788", 39 ] 40 41 volumeMounts: [{ 42 mountPath: "/etc/ssl" 43 name: "secret-volume" 44 }] 45 }] 46 } 47 } 48 } 49 50 deployment: events: spec: template: spec: containers: [{ports: [{_export: false}, _]}]