Skip to content

Instantly share code, notes, and snippets.

View shawnho1018's full-sized avatar

Shawnho shawnho1018

  • Google
View GitHub Profile
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
apiVersion: skaffold/v2beta19
kind: Config
build:
tagPolicy:
sha256: {}
# defines where to find the code at build time and where to push the resulting image
artifacts:
- image: asia-east1-docker.pkg.dev/[PROJECT_NAME]/image-repos/hello-world-java-docker
context: .
googleCloudBuild:
apiVersion: deploy.cloud.google.com/v1
kind: DeliveryPipeline
metadata:
name: hello-java
description: Software Delivery Workshop Sample
serialPipeline:
stages:
- targetId: uat
profiles:
- uat
steps:
- id: 'buildImage'
name: 'gcr.io/k8s-skaffold/skaffold:v1.35.1'
entrypoint: 'bash'
args:
- '-c'
- |
skaffold build --file-output /workspace/tags.json
- id: 'container structural test'
name: 'gcr.io/k8s-skaffold/skaffold:v1.35.1'
apiVersion: shawn.user-guide.io/v1
kind: practitioner
metadata:
name: shawnho
labels:
nickname: dr.ho
motto: show.but.dont.tell
enjoy: sharing
love: community
spec:
# coredns.yaml
shawnho@workstation:~/dns$ kubectl get -n kube-system cm coredns-config -o yaml
apiVersion: v1
data:
Corefile: |-
.:53 {
errors
health {
lameduck 5s
}
# cluster-dns.yaml
apiVersion: networking.gke.io/v1alpha1
kind: ClusterDNS
metadata:
name: default
spec:
upstreamNameservers:
- serverIP: 8.8.8.8
- serverIP: 8.8.4.4
domains:
# bind-deployment.yaml
apiVersion: apps/v1
kind: Deployment
metadata:
name: bind-deployment
labels:
app: bind
spec:
replicas: 1
selector: