github.com/gocrane/crane@v0.11.0/examples/autoscaling/php-apache.yaml (about) 1 apiVersion: apps/v1 2 kind: Deployment 3 metadata: 4 name: php-apache 5 spec: 6 selector: 7 matchLabels: 8 run: php-apache 9 replicas: 1 10 template: 11 metadata: 12 labels: 13 run: php-apache 14 spec: 15 containers: 16 - name: php-apache 17 image: gocrane/hpa-sample:v1.0.0 18 ports: 19 - containerPort: 80 20 resources: 21 limits: 22 cpu: 500m 23 requests: 24 cpu: 200m 25 26 --- 27 28 apiVersion: v1 29 kind: Service 30 metadata: 31 name: php-apache 32 labels: 33 run: php-apache 34 spec: 35 ports: 36 - port: 80 37 selector: 38 run: php-apache