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 { NextRequest, NextResponse } from "next/server"; | |
import { configureGenkit } from "@genkit-ai/core"; | |
import { firebase } from "@genkit-ai/firebase"; | |
import { retrieve } from "@genkit-ai/ai/retriever"; | |
import { generate } from "@genkit-ai/ai"; | |
import { defineFirestoreRetriever } from "@genkit-ai/firebase"; | |
import { initializeApp } from "firebase-admin/app"; | |
import { getFirestore } from "firebase-admin/firestore"; | |
import { vertexAI } from "@genkit-ai/vertexai"; |
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 repository, type, event AS status, COUNT(*) AS count | |
FROM ( | |
SELECT type, repo.name as repository, actor.login, | |
JSON_EXTRACT(payload, '$.action') AS event, created_at | |
FROM `githubarchive.day.20*` | |
WHERE actor.login = 'askmeegs' AND | |
created_at BETWEEN TIMESTAMP('2019-10-19') AND | |
TIMESTAMP('2020-08-16') | |
) | |
GROUP BY repository, type, status ORDER BY repository, type, status; |
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
➜ ~ kubectl logs -f frontend-7f6946d68-72fb8 | |
2020-06-25 13:12:39 | [DEBUG] | debug | Current configuration: | |
config: None | |
bind: [':8080'] | |
backlog: 2048 | |
workers: 1 | |
worker_class: sync | |
threads: 4 | |
worker_connections: 1000 | |
max_requests: 0 |
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
# Copyright 2018 Google LLC | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software | |
# distributed under the License is distributed on an "AS IS" BASIS, |
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
➜ ~ stern balancereader | |
+ balancereader-ccb445895-698gw › reader | |
balancereader-ccb445895-698gw reader ____ _ ____ _ | |
balancereader-ccb445895-698gw reader | __ ) __ _ | | __ _ _ __ ___ ___ | _ \ ___ __ _ __| | ___ _ __ | |
balancereader-ccb445895-698gw reader | _ \ / _` | | | / _` | | '_ \ / __| / _ \ | |_) | / _ \ / _` | / _` | / _ \ | '__| | |
balancereader-ccb445895-698gw reader | |_) | | (_| | | | | (_| | | | | | | (__ | __/ | _ < | __/ | (_| | | (_| | | __/ | | | |
balancereader-ccb445895-698gw reader |____/ \__,_| |_| \__,_| |_| |_| \___| \___| |_| \_\ \___| \__,_| \__,_| \___| |_| | |
balancereader-ccb445895-698gw reader | |
balancereader-ccb445895-698gw reader $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ | |
balancereader-ccb445895-698gw reader |
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: helloserver | |
spec: | |
replicas: 1 | |
selector: | |
matchLabels: | |
app: helloserver | |
template: |
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
# ILB config source - https://github.com/istio/istio/issues/20033 | |
apiVersion: install.istio.io/v1alpha1 | |
kind: IstioOperator | |
spec: | |
addonComponents: | |
grafana: | |
enabled: true | |
k8s: | |
replicaCount: 1 | |
istiocoredns: |
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: "authentication.istio.io/v1alpha1" | |
kind: "MeshPolicy" | |
metadata: | |
name: "default" | |
spec: | |
peers: | |
- mtls: {} | |
--- | |
apiVersion: networking.istio.io/v1alpha3 | |
kind: DestinationRule |
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
#!/bin/bash | |
# Download Istio | |
WORKDIR="`pwd`" | |
ISTIO_VERSION="${ISTIO_VERSION:?ISTIO_VERSION env variable must be specified}" | |
log "Downloading Istio ${ISTIO_VERSION}..." | |
curl -L https://git.io/getLatestIstio | ISTIO_VERSION=$ISTIO_VERSION sh - | |
# Prepare for install |
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: emailservice | |
spec: | |
selector: | |
matchLabels: | |
app: emailservice | |
template: | |
metadata: |
NewerOlder