This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
resource "google_compute_security_policy" "victoriametrics" { | |
name = "victoriametrics" | |
rule { | |
action = "allow" | |
priority = "1000" | |
match { | |
expr { | |
# Querying from nat IP of the k8s cluster | |
# https://github.com/VictoriaMetrics/VictoriaMetrics/tree/cluster#url-format |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var elasticsearch = require('elasticsearch'); | |
var client = new elasticsearch.Client({ | |
host: 'pelias-es-http:9200', | |
log: 'trace', | |
apiVersion: '7.5', | |
}); | |
client.indices.exists({ | |
index: 'pelias' | |
}, function (error) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM golang:alpine AS builder | |
RUN apk update && apk add --no-cache git | |
COPY hello.go hello.go | |
RUN go get -d -v | |
RUN go build -o /go/bin/hello | |
FROM scratch | |
COPY --from=builder /go/bin/hello /go/bin/hello | |
ENTRYPOINT ["/go/bin/hello"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'open-uri' | |
OK = 'OK'.freeze | |
if ARGV.length != 1 | |
raise 'Please provide the service address as a single argument' | |
end | |
exit_code = 0 |