-
Notifications
You must be signed in to change notification settings - Fork 4
/
skaffold.yaml
90 lines (85 loc) · 2.8 KB
/
skaffold.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
apiVersion: skaffold/v4beta11
kind: Config
metadata:
name: sqs-prometheus-exporter
build:
artifacts:
- image: sqs-prometheus-exporter
deploy:
helm:
releases:
- name: localstack
remoteChart: https://github.com/localstack/helm-charts/releases/download/localstack-0.6.16/localstack-0.6.16.tgz
namespace: monitoring
createNamespace: true
setValues:
extraEnvVars:
- name: SERVICES
value: "sqs"
enableStartupScripts: true
# language=sh
startupScriptContent: |
#!/bin/bash
echo "Creating SQS queue..."
awslocal sqs create-queue --queue-name sample-queue
url="http://sqs.us-east-1.localhost.localstack.cloud:4566/000000000000/sample-queue"
for i in {1..100}; do
awslocal sqs send-message --queue-url "$url" --message-body "Msg $i - $(date +%s)"
echo "Sent message $i"
done
- name: kube-prometheus-stack
remoteChart: https://github.com/prometheus-community/helm-charts/releases/download/kube-prometheus-stack-61.9.0/kube-prometheus-stack-61.9.0.tgz
namespace: monitoring
createNamespace: true
setValues:
defaultRules:
create: true
rules:
etcd: false
kubeScheduler: false
alertmanager:
enabled: false
grafana:
enabled: false
kubeControllerManager:
enabled: false
kubeEtcd:
enabled: false
kubeScheduler:
enabled: false
prometheus:
prometheusSpec:
podMonitorSelectorNilUsesHelmValues: false
- name: sqs-prometheus-exporter
chartPath: chart/sqs-prometheus-exporter
namespace: monitoring
createNamespace: true
setValueTemplates:
image:
repository: "{{.IMAGE_REPO_sqs_prometheus_exporter}}"
tag: "{{.IMAGE_TAG_sqs_prometheus_exporter}}@{{.IMAGE_DIGEST_sqs_prometheus_exporter}}"
sqs:
region: us-east-1
queueUrls:
- "http://sqs.us-east-1.localhost.localstack.cloud:4566/000000000000/sample-queue"
deployment:
extraEnv:
AWS_ACCESS_KEY_ID: 123
AWS_SECRET_KEY: fake123
AWS_ENDPOINT_URL: http://localstack.monitoring.svc.cluster.local:4566
portForward:
- resourceType: service
resourceName: kube-prometheus-stack-prometheus
namespace: monitoring
port: 9090
localPort: 9090
- resourceType: service
resourceName: localstack
namespace: monitoring
port: 4566
localPort: 4566
- resourceType: deployment
resourceName: sqs-prometheus-exporter
namespace: monitoring
port: 8080
localPort: 8080