ID localization for run-application horizontal-pod-autoscale-walkthrough

This commit is contained in:
Miftahun Najat
2020-09-12 09:38:04 +07:00
parent 4a72cf2bad
commit bb4e128e23
4 changed files with 524 additions and 0 deletions
@@ -0,0 +1,36 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: php-apache
spec:
selector:
matchLabels:
run: php-apache
replicas: 1
template:
metadata:
labels:
run: php-apache
spec:
containers:
- name: php-apache
image: k8s.gcr.io/hpa-example
ports:
- containerPort: 80
resources:
limits:
cpu: 500m
requests:
cpu: 200m
---
apiVersion: v1
kind: Service
metadata:
name: php-apache
labels:
run: php-apache
spec:
ports:
- port: 80
selector:
run: php-apache