View pget.go
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
"sort" | |
"time" | |
) | |
// a struct to hold the result from each request including an index |
View pod.yaml
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
annotations: | |
vault.security/enabled: "true" | |
vault.security/vault-addr: "https://vault.default.svc.cluster.local:8200" | |
vault.security/vault-role: "some-role" | |
vault.security/vault-path: "secret_v1/service/" | |
vault.security/vault-tls-secret-name: "vault-consul-ca" | |
vault.security/vault-use-secret-names-as-keys: "true" |
View iap-backend-config.yaml
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
apiVersion: cloud.google.com/v1beta1 | |
kind: BackendConfig | |
metadata: | |
name: config-default | |
spec: | |
iap: | |
enabled: true | |
oauthclientCredentials: | |
secretName: my-secret |
View managed-certificate.yaml
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
apiVersion: networking.gke.io/v1beta1 | |
kind: ManagedCertificate | |
metadata: | |
name: vault-ui-certificate | |
spec: | |
domains: | |
- vault.domain.com |
View vault-gke-values.yaml
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
global: | |
tlsDisable: false | |
server: | |
# resources: | |
# requests: | |
# memory: 256Mi | |
# cpu: 250m | |
# limits: | |
# memory: 256Mi |
View deploy.yaml
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
--- | |
apiVersion: v1 | |
kind: ServiceAccount | |
metadata: | |
name: tester | |
namespace: default | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: |
View vault-env-var.yaml
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
env: | |
- name: DB_PASS | |
value: "vault:DB_PASS" |
View annotations.yaml
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
annotations: | |
vault.security/enabled: "true" | |
vault.security/vault-addr: "https://vault.default.svc.cluster.local:8200" | |
vault.security/vault-role: "vault-role" | |
vault.security/vault-path: "secret/some/path/in/vault" | |
vault.security/vault-tls-secret-name: "vault-consul-ca" |
View gist:c45b1bb999754910046ffcdba52bcaec
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
## main.tf | |
resource "aws_s3_bucket" "s3_bucket" { | |
count = "${var.enabled}" | |
bucket = "${local.bucket_name}" | |
region = "${var.region}" | |
force_destroy = "${var.force_destroy}" | |
acl = "private" | |
versioning = { | |
enabled = "${var.versioning_enabled}" |
View Dockerfile
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
# syntax=docker/dockerfile:1.0.0-experimental | |
## For this to work you must run `export DOCKER_BUILDKIT=1` | |
## then build using the command | |
## docker build --ssh github_ssh_key=/Users/<your_username>/.ssh/id_rsa . | |
## Stage 1 | |
FROM python:2.7.15-alpine3.7 AS base |
NewerOlder