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 python3 | |
import json | |
import sys | |
def json_to_ndjson(input_file: str, output_file=None): | |
"""Converts a JSON input file of JSON objects to NDJSON format. | |
Args: |
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: Pod | |
metadata: | |
name: kaniko-wi | |
spec: | |
containers: | |
- name: kaniko | |
image: gcr.io/kaniko-project/executor:v1.9.1 | |
args: ["--dockerfile=Dockerfile", | |
"--context=gs://${GCS_BUCKET}/path/to/context.tar.gz", |
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: Pod | |
metadata: | |
name: kaniko-k8s-secret | |
spec: | |
containers: | |
- name: kaniko | |
image: gcr.io/kaniko-project/executor:v1.9.1 | |
args: ["--dockerfile=Dockerfile", | |
"--context=gs://${GCS_BUCKET}/path/to/context.tar.gz", |
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.istio.io/v1beta1 | |
kind: Gateway | |
metadata: | |
name: productpage-gateway | |
namespace: bookinfo | |
spec: | |
selector: | |
istio: ingressgateway | |
servers: | |
- port: |
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: apps/v1 | |
kind: Deployment | |
metadata: | |
name: istio-ingressgateway | |
spec: | |
replicas: 2 | |
selector: | |
matchLabels: | |
app: istio-ingressgateway | |
istio: ingressgateway |
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
job "minecraft" { | |
datacenters = ["gcp-test"] | |
priority = 80 | |
group "mc-server" { | |
network { | |
port "access" { static = 25565 } | |
} | |
# reserved disk |
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
job "spring-backend" { | |
datacenters = ["gcp-test"] | |
priority = 80 | |
group "spring-backend" { | |
network { | |
port "api" { static = 8081 } | |
} | |
task "spring-backend" { |
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
locals { | |
membrane_version = "5.0.1" | |
} | |
job "membrane-proxy" { | |
datacenters = ["gcp-test"] | |
priority = 80 | |
group "membrane" { | |
network { |
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
job "spring-music" { | |
datacenters = ["gcp-test"] | |
priority = 80 | |
group "spring-music" { | |
network { | |
port "access" { static = 28080 } | |
} | |
task "spring-music" { |
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
job "redis-client" { | |
datacenters = ["gcp-test"] | |
group "redis" { | |
count = 1 | |
task "client" { | |
driver = "docker" | |
template { |
NewerOlder