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
[ | |
{ | |
"role":"user", | |
"parts":[ | |
{ | |
"text":"Enable redis and cloud sql on this domain" | |
}, | |
{ | |
"text":"Replace the placeholders with the following values if they should be present in the output YAML unless the prompt is referring to actual YAMLs from the user's environment, in which case use the YAML as is without replacing values: {\n \"billingAccountId\": \"XXXXXX-XXXXXX-XXXXXX\",\n \"parentFolderId\": \"38822600023\",\n \"parentGroupId\": 88474985\n}." | |
}, |
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
port: 9292 | |
logging.level: debug | |
logging.recovery: true | |
#logging.raft: true | |
#logging.nats: true | |
data.dir: /tmp/liftbridge/server-a | |
nats.embedded: true | |
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
import json | |
import os | |
import sys | |
def parse(input_file_name, output_file_name): | |
with open(input_file_name) as f: | |
data = json.load(f) | |
vpcs = {} |
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
SELECT | |
jsonPayload.CONNECTION.src_ip, | |
jsonPayload.CONNECTION.dest_ip, | |
jsonPayload.src_instance.region AS src_region, | |
jsonPayload.src_instance.zone AS src_zone, | |
jsonPayload.src_instance.vm_name AS src_vm, | |
jsonPayload.dest_instance.region AS dest_region, | |
jsonPayload.dest_instance.zone AS dest_zone, | |
jsonPayload.dest_instance.vm_name AS dest_vm, | |
jsonPayload.src_vpc.vpc_name AS src_vpc, |
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: Service | |
metadata: | |
name: web | |
namespace: default | |
annotations: | |
beta.cloud.google.com/backend-config: '{"default": "config-default"}' | |
spec: | |
ports: | |
- port: 8080 |
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 | |
namespace: default | |
spec: | |
iap: | |
enabled: true | |
oauthclientCredentials: | |
secretName: iap-oauth-client-id |
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: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: basic-ingress | |
annotations: | |
kubernetes.io/ingress.global-static-ip-name: "web-static-ip" | |
networking.gke.io/managed-certificates: "iap-demo" | |
spec: | |
backend: | |
serviceName: web |
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: iap-demo | |
spec: | |
domains: | |
- example.com |
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: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: basic-ingress | |
annotations: | |
kubernetes.io/ingress.global-static-ip-name: "web-static-ip" | |
spec: | |
backend: | |
serviceName: web | |
servicePort: 8080 |
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: Service | |
metadata: | |
name: web | |
namespace: default | |
spec: | |
ports: | |
- port: 8080 | |
protocol: TCP | |
targetPort: 8080 |
NewerOlder