Skip to content

Instantly share code, notes, and snippets.

View shawnho1018's full-sized avatar

Shawnho shawnho1018

  • Google
View GitHub Profile
@shawnho1018
shawnho1018 / urlmap-loadbalancer.yaml
Created November 8, 2022 01:27
urlmap-loadbalancer.yaml
defaultService: projects/shawn-mesh-2022/global/backendServices/bs-svc-a
name: matcher1
routeRules:
- urlRedirect:
pathRedirect: /balance
stripQuery: true
hostRedirect: tsmc.shawnk8s.com
redirectResponseCode: FOUND
matchRules:
- prefixMatch: /meet
apiVersion: v1
kind: ConfigMap
metadata:
namespace: gmp-test
name: prometheus-test
labels:
prometheus: test
data:
config.yaml: |
global:
apiVersion: v1
kind: ConfigMap
metadata:
namespace: gmp-test
name: prometheus-test
labels:
prometheus: test
data:
config.yaml: |
global:
@shawnho1018
shawnho1018 / prometheus-config-addon.yaml
Last active September 19, 2022 09:18
prometheus-config-addon.yaml
# 收集istiod上數據
- job_name: 'istiod'
kubernetes_sd_configs:
- role: endpoints
namespaces:
names:
- istio-system
relabel_configs:
- source_labels: [__meta_kubernetes_service_name, __meta_kubernetes_endpoint_port_name]
action: keep
@shawnho1018
shawnho1018 / httproute.yaml
Created September 14, 2022 16:08
httproute.yaml
kind: HTTPRoute
apiVersion: gateway.networking.k8s.io/v1alpha2
metadata:
name: jitsi-1
namespace: default
labels:
gateway: jitsi-http3
spec:
parentRefs:
- name: jitsi-http3
@shawnho1018
shawnho1018 / gateway.yaml
Created September 14, 2022 15:59
gateway.yaml public
kind: Gateway
apiVersion: gateway.networking.k8s.io/v1alpha2
metadata:
name: jitsi-http3
spec:
gatewayClassName: gke-l7-gxlb
listeners:
- name: https
protocol: HTTPS
port: 443
---
apiVersion: mongodbcommunity.mongodb.com/v1
kind: MongoDBCommunity
metadata:
name: example-mongodb
namespace: mongodb
spec:
members: 3
type: ReplicaSet
version: "4.2.6"
apiVersion: apps/v1
kind: Deployment
metadata:
name: frontend
spec:
replicas: 2
selector:
matchLabels:
app: frontend
template:
apiVersion: monitoring.googleapis.com/v1
kind: PodMonitoring
metadata:
name: prom-example
spec:
selector:
matchLabels:
app: prom-example
endpoints:
- port: metrics
@shawnho1018
shawnho1018 / table.csv
Last active July 7, 2022 00:56
Azure DevOps agent vs job Table
Standard Job (1) Container-based Job (2)
Self Hosted VM Agent(3) O O
Self Hosted Container Agent(4) O X
Microsoft-Hosted Agent(5) O O