This file contains hidden or 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:1.12-stretch AS builder | |
| WORKDIR $GOPATH/pinger | |
| COPY . . | |
| RUN go build -o app . | |
| FROM ubuntu:bionic | |
| COPY --from=builder /go/pinger/app / | |
| ENV PORT=8000 | |
| EXPOSE $PORT |
This file contains hidden or 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
| apiVersion: monitoring.coreos.com/v1 | |
| kind: ServiceMonitor | |
| metadata: | |
| name: pinger-monitor | |
| labels: | |
| app: pinger | |
| prometheus: prom-op | |
| spec: | |
| selector: | |
| matchLabels: |
This file contains hidden or 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
| apiVersion: apps/v1 | |
| kind: DaemonSet | |
| metadata: | |
| name: fluentd | |
| namespace: kube-system | |
| labels: | |
| app: fluentd-logging | |
| version: v1 | |
| kubernetes.io/cluster-service: "true" | |
| spec: |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: ConfigMap | |
| metadata: | |
| name: fluentd-logging | |
| namespace: kube-system | |
| labels: | |
| app: fluentd-logging | |
| data: | |
| fluent.conf: | | |
| <source> |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "math" | |
| "math/rand" | |
| "net/http" | |
| "os" |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "math" | |
| "math/rand" | |
| "net/http" | |
| "os" |
This file contains hidden or 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
| package main | |
| import ( | |
| "fmt" | |
| "io" | |
| "log" | |
| "math" | |
| "math/rand" | |
| "net/http" | |
| "os" |
This file contains hidden or 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 localhost:5000/mybusybox | |
| CMD ["echo", "Hello from busybox"] |
This file contains hidden or 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
| apiVersion: v1 | |
| kind: Pod | |
| metadata: | |
| name: {{ template "simple-pod.fullname" . }} | |
| labels: | |
| {{ include "simple-pod.labels" . | indent 4 }} | |
| spec: | |
| containers: | |
| - name: {{ .Chart.Name }} | |
| image: {{ .Values.image }} |
This file contains hidden or 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
| IMGPROXY_KEY=$(xxd -g 2 -l 64 -p /dev/random | tr -d '\n') | |
| IMGPROXY_SALT=$(xxd -g 2 -l 64 -p /dev/random | tr -d '\n') | |
| ACCESS_SECRET=$(xxd -g 2 -l 5 -p /dev/random | tr -d '\n') | |
| ACCESS_KEY=$(xxd -g 2 -l 5 -p /dev/random | tr -d '\n') | |
| REGION=us-east-1 | |
| DEFAULT_BUCKET=sample |