<p>After setup my kubernetes cluster on GCP i used command <strong>kubectl scale deployment superappip--replicas=30</strong> from google console to scale my deployments, but what should be added in my deployment  file myip-service.yaml to do the same?</p>

babebort
<p>The following is an example of a Deployment. It creates a ReplicaSet to bring up three nginx Pods</p>
<pre><code>apiVersion: apps/v1
kind: Deployment
metadata:
  name: nginx-deployment
  labels:
    app: nginx
spec:
  replicas: 3
  selector:
    matchLabels:
      app: nginx
  template:
    metadata:
      labels:
        app: nginx
    spec:
      containers:
      - name: nginx
        image: nginx:1.14.2
        ports:
        - containerPort: 80
</code></pre>
<p>you can follow more <a href="https://kubernetes.io/docs/concepts/workloads/controllers/deployment/#creating-a-deployment" rel="nofollow noreferrer">here</a>.</p>
