github.com/solo-io/cue@v0.4.7/doc/tutorial/kubernetes/quick/services/infra/tasks/kube.cue (about)

     1  package kube
     2  
     3  deployment: tasks: spec: {
     4  	// podTemplate defines the 'cookie cutter' used for creating
     5  	// new pods when necessary
     6  	template: {
     7  		metadata: annotations: {
     8  			"prometheus.io.scrape": "true"
     9  			"prometheus.io.port":   "7080"
    10  		}
    11  		spec: {
    12  			volumes: [{
    13  				name: "secret-volume"
    14  				secret: secretName: "star-example-com-secrets"
    15  			}]
    16  			containers: [{
    17  				image: "gcr.io/myproj/tasks:v0.2.6"
    18  				ports: [{
    19  					containerPort: 7080
    20  				}, {
    21  					containerPort: 7443
    22  				}]
    23  				volumeMounts: [{
    24  					mountPath: "/etc/ssl"
    25  					name:      "secret-volume"
    26  				}]
    27  			}]
    28  		}
    29  	}
    30  }
    31  
    32  deployment: tasks: spec: template: spec: containers: [{ports: [{_export: false}, _]}]