blob: e607ec45cac296d391e2e5c870558e391e937ad8 [file] [log] [blame]
package kube
Component :: "kitchen"
deployment <Name> spec template: {
metadata annotations "prometheus.io.scrape": "true"
spec containers: [{
ports: [{
containerPort: 8080
}]
livenessProbe: {
httpGet: {
path: "/debug/health"
port: 8080
}
initialDelaySeconds: 40
periodSeconds: 3
}
}]
}
deployment <ID> spec template spec: {
hasDisks :: *true | bool
volumes: [{
name: *"\(ID)-disk" | string
gcePersistentDisk pdName: *"\(ID)-disk" | string
gcePersistentDisk fsType: "ext4"
}, {
name: *"secret-\(ID)" | string
secret secretName: *"\(ID)-secrets" | string
}, ...] if hasDisks
containers: [{
volumeMounts: [{
name: *"\(ID)-disk" | string
mountPath: *"/logs" | string
}, {
mountPath: *"/etc/certs" | string
name: *"secret-\(ID)" | string
readOnly: true
}, ...]
}] if hasDisks // field comprehension using just "if"
}