...

Text file src/cuelang.org/go/doc/tutorial/kubernetes/manual/services/kitchen/kube.cue

Documentation: cuelang.org/go/doc/tutorial/kubernetes/manual/services/kitchen

     1package kube
     2
     3_base: label: component: "kitchen"
     4
     5deployment: [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}

View as plain text