github.com/solo-io/cue@v0.4.7/doc/tutorial/kubernetes/quick/services/mon/alertmanager/kube.cue (about) 1 package kube 2 3 service: alertmanager: { 4 metadata: { 5 annotations: { 6 "prometheus.io/scrape": "true" 7 "prometheus.io/path": "/metrics" 8 } 9 labels: name: "alertmanager" 10 } 11 spec: { 12 // type: ClusterIP 13 ports: [{ 14 name: "main" 15 }] 16 } 17 } 18 deployment: alertmanager: spec: { 19 selector: matchLabels: app: "alertmanager" 20 template: { 21 metadata: name: "alertmanager" 22 spec: { 23 containers: [{ 24 image: "prom/alertmanager:v0.15.2" 25 args: [ 26 "--config.file=/etc/alertmanager/alerts.yaml", 27 "--storage.path=/alertmanager", 28 "--web.external-url=https://alertmanager.example.com", 29 ] 30 ports: [{ 31 name: "alertmanager" 32 containerPort: 9093 33 }] 34 volumeMounts: [{ 35 name: "config-volume" 36 mountPath: "/etc/alertmanager" 37 }, { 38 name: "alertmanager" 39 mountPath: "/alertmanager" 40 }] 41 }] 42 volumes: [{ 43 name: "config-volume" 44 configMap: name: "alertmanager" 45 }, { 46 name: "alertmanager" 47 emptyDir: {} 48 }] 49 } 50 } 51 }