...

Text file src/cuelang.org/go/doc/tutorial/kubernetes/quick/services/infra/watcher/kube.cue

Documentation: cuelang.org/go/doc/tutorial/kubernetes/quick/services/infra/watcher

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

View as plain text