Skip to content

Workflow file for this run

apiVersion: apps/v1
kind: Deployment
metadata:
name: nginx-1
namespace: default
labels:
app: nginx-1
spec:
replicas: 3
selector:
matchLabels:
app: nginx-1
template:
metadata:
labels:
app: nginx-1
spec:
containers:
- name: nginx-container
image: gcr.io/cdtest-406103/kubernetes-engine-ci-cd-template@sha256:60799eeba355e69530841972016773e901bfc762108efeedbb7412c7741672c9
ports:
- containerPort: 8080
---
apiVersion: autoscaling/v2
kind: HorizontalPodAutoscaler
metadata:
name: nginx-1-hpa-zylx
namespace: default
labels:
app: nginx-1
spec:
scaleTargetRef:
kind: Deployment
name: nginx-1
apiVersion: apps/v1
minReplicas: 1
maxReplicas: 5
metrics:
- type: Resource
resource:
name: cpu
target:
type: Utilization
averageUtilization: 80
---
apiVersion: v1
kind: Service
metadata:
name: nginx-service
namespace: default
spec:
selector:
app: nginx-1
ports:
- protocol: TCP
port: 8080
targetPort: 8080
type: LoadBalancer