Skip to content

Instantly share code, notes, and snippets.

@making
Last active February 28, 2021 05:22
Show Gist options
  • Save making/49e5c5110b98f2dc682733a7186a0203 to your computer and use it in GitHub Desktop.
Save making/49e5c5110b98f2dc682733a7186a0203 to your computer and use it in GitHub Desktop.
Replica数を変えたい
apiVersion: apps/v1
kind: Deployment
metadata:
labels:
app: demo
name: demo
spec:
replicas: 1
selector:
matchLabels:
app: demo
template:
metadata:
labels:
app: demo
spec:
containers:
- image: ghcr.io/making/hello-tanzu
name: hello-tanzu
#@ load("@ytt:overlay", "overlay")
#@overlay/match by=overlay.subset({"kind":"Deployment", "metadata": {"name": "demo"}})
---
spec:
replicas: 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment