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
| receivers: | |
| otlp: | |
| protocols: | |
| grpc: | |
| http: | |
| endpoint: "0.0.0.0:4318" | |
| cors: | |
| allowed_origins: | |
| - "http://localhost:5000" |
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
| import { WebTracerProvider } from '@opentelemetry/sdk-trace-web' | |
| import { BatchSpanProcessor } from '@opentelemetry/sdk-trace-base' | |
| import { W3CTraceContextPropagator } from '@opentelemetry/core' | |
| import { registerInstrumentations } from '@opentelemetry/instrumentation' | |
| import { SemanticResourceAttributes } from '@opentelemetry/semantic-conventions' | |
| import { Resource } from '@opentelemetry/resources' | |
| import { ZoneContextManager } from '@opentelemetry/context-zone' | |
| import { FetchInstrumentation } from '@opentelemetry/instrumentation-fetch' | |
| import { OTLPTraceExporter } from '@opentelemetry/exporter-trace-otlp-http' |
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 curlimages/curl:7.81.0 AS download | |
| RUN curl --silent --fail -L "https://github.com/open-telemetry/opentelemetry-java-instrumentation/releases/latest/download/opentelemetry-javaagent.jar" \ | |
| -o "$HOME/opentelemetry-javaagent.jar" | |
| FROM maven:3.8.6-openjdk-8 AS build | |
| ADD . /build | |
| RUN cd /build && mvn package --quiet | |
| FROM openjdk:19 | |
| COPY --from=build /build/target/*.jar /app.jar |
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 | |
| data: | |
| prometheus.yaml: { | |
| "apiVersion": 1, | |
| "datasources": [ | |
| { | |
| "access": "proxy", | |
| "basicAuth": true, | |
| "basicAuthPassword": "Y1nFdR+Xzpa8tyS5RtVb21ytvK4tClbVTpkI+c62g22HO10HmcYmPWxAotBxWK+CjCrURkJ3STrPVKOdySe/rIoQeeIZL2V2psToHMLTJ6pGFI2wzZVA+ldI29N4FmhF5QjBbXr5f/xZjlOA6FCAevoTOrhAFHUAQmzh8/qXgg9OHfR63hAhe4JkJs0kT2aqYdhl5UBbMcASWaLqyRBf+kPapySL9BxdyEuJjxZVBfujZKnk6n4yhkrCT+nUp1+D9Ntxgxs/mwx09I+tH4tJoJUhALWyYZZj", | |
| "basicAuthUser": "XXXXXXXX", |
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
| service: | |
| type: ClusterIP | |
| port: 3000 | |
| targetPort: 3000 | |
| portName: service | |
| datasources: | |
| datasources.yaml: | |
| apiVersion: 1 | |
| datasources: |
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
| #!/bin/sh | |
| for i in `seq 0 2`; do | |
| echo "mongodb-$i" | |
| master=$(kubectl exec mongodb-$i -- sh -c 'mongo -u ${MONGO_USERNAME} -p ${MONGO_PASSWORD} \ | |
| --authenticationDatabase "admin" admin --ssl --sslAllowInvalidCertificates \ | |
| --sslCAFile /data/configdb/mongodb-ssl-cert.pem --quiet \ | |
| --eval="JSON.stringify(db.isMaster().ismaster)"' | grep -v "NETWORK") | |
| if [ $master == true ] ; then | |
| echo "######### Let's backup mongodb-$i" |
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
| #!/bin/sh | |
| DateStamp=$(date +%d%m%y) | |
| BackupDirectory="/data/configdb/backup" | |
| mkdir -p $BackupDirectory | |
| sslCAFile="/data/configdb/mongodb-ssl-cert.pem" | |
| DATABASE='database' | |
| USERNAME='user' |
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
| stages: | |
| - backup | |
| backup-mongo: | |
| stage: backup | |
| image: | |
| name: bitnami/kubectl:latest | |
| entrypoint: [] | |
| script: | |
| - chmod +x select_primary.sh |
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 maven:3.5.4-jdk-8-alpine as builder | |
| WORKDIR /app | |
| COPY pom.xml ./ | |
| RUN mvn dependency:go-offline | |
| COPY src src | |
| RUN mvn package | |
| FROM openjdk:8-jre-alpine | |
| RUN addgroup app && adduser app -D -G app | |
| USER app |
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 node:10.16.3-alpine as builder | |
| WORKDIR /app | |
| COPY package.json package-lock.json ./ | |
| RUN npm install | |
| COPY . . | |
| RUN npm run build | |
| FROM nginxinc/nginx-unprivileged | |
| COPY --from=builder /app/build /usr/share/nginx/html/ | |
| COPY nginx.conf /etc/nginx/conf.d/default.conf |
NewerOlder