Skip to content

Instantly share code, notes, and snippets.

@askmeegs
Created April 24, 2020 19:06
Show Gist options
  • Save askmeegs/ba98053e8f6cb55e0283312c17f3925e to your computer and use it in GitHub Desktop.
Save askmeegs/ba98053e8f6cb55e0283312c17f3925e to your computer and use it in GitHub Desktop.
VPC peering test - manifests
apiVersion: apps/v1
kind: Deployment
metadata:
name: helloserver
spec:
replicas: 1
selector:
matchLabels:
app: helloserver
template:
metadata:
labels:
app: helloserver
spec:
containers:
- image: gcr.io/google-samples/istio/helloserver:v0.0.1
imagePullPolicy: Always
name: main
restartPolicy: Always
terminationGracePeriodSeconds: 5
---
apiVersion: v1
kind: Service
metadata:
name: hellosvc
annotations:
cloud.google.com/load-balancer-type: "Internal"
labels:
app: helloserver
spec:
type: LoadBalancer
selector:
app: helloserver
ports:
- port: 80
targetPort: 8080
protocol: TCP
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: loadgenerator
spec:
replicas: 1
selector:
matchLabels:
app: loadgenerator
template:
metadata:
labels:
app: loadgenerator
spec:
containers:
- env:
- name: SERVER_ADDR
value: http://10.209.0.5:80/
- name: REQUESTS_PER_SECOND
value: '1'
image: gcr.io/megan-vpc-a/loadgen:v0.0.2
imagePullPolicy: Always
name: main
resources:
limits:
cpu: 500m
memory: 512Mi
requests:
cpu: 300m
memory: 256Mi
restartPolicy: Always
terminationGracePeriodSeconds: 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment