github.com/solo-io/cue@v0.4.7/doc/tutorial/kubernetes/manual/services/kitchen/kube.cue (about)

     1  package kube
     2  
     3  _base: label: component: "kitchen"
     4  
     5  deployment: [string]: {
     6  	expose: port: client: 8080
     7  
     8  	kubernetes: spec: template: metadata: annotations: "prometheus.io.scrape": "true"
     9  
    10  	kubernetes: spec: template: spec: containers: [{
    11  		livenessProbe: {
    12  			httpGet: {
    13  				path: "/debug/health"
    14  				port: 8080
    15  			}
    16  			initialDelaySeconds: 40
    17  			periodSeconds:       3
    18  		}
    19  	}]
    20  }
    21  
    22  // _kitchenDeployment provides a basis configuration for kitchen deployments.
    23  _kitchenDeployment: {
    24  	name: string
    25  
    26  	arg: env:            "prod"
    27  	arg: logdir:         "/logs"
    28  	arg: "event-server": "events:7788"
    29  
    30  	// Volumes
    31  	volume: "\(name)-disk": {
    32  		name:      string
    33  		mountPath: *"/logs" | string
    34  		spec: gcePersistentDisk: {
    35  			pdName: *name | string
    36  			fsType: "ext4"
    37  		}
    38  	}
    39  
    40  	volume: "secret-\(name)": {
    41  		mountPath: *"/etc/certs" | string
    42  		readOnly:  true
    43  		spec: secret: secretName: *"\(name)-secrets" | string
    44  	}
    45  }