Skip to content

Instantly share code, notes, and snippets.

@stevenctl
Last active July 13, 2020 21:43
Show Gist options
  • Save stevenctl/8d8337f11b194889eb37050808486263 to your computer and use it in GitHub Desktop.
Save stevenctl/8d8337f11b194889eb37050808486263 to your computer and use it in GitHub Desktop.
# scales deployment a to 500 replicas
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: a
spec:
replicas: 500
selector:
matchLabels:
app: a
version: v1
template:
metadata:
labels:
app: a
version: v1
spec:
containers:
- name: tcp-echo
image: docker.io/istio/tcp-echo-server:1.2
imagePullPolicy: IfNotPresent
args: [ "9000,9001", "hello" ]
resources:
limits:
cpu: "0.1"
requests:
cpu: "0.1"
ports:
- containerPort: 9000
- containerPort: 9001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment