apiVersion: apps/v1 kind: Deployment metadata: labels: run: php-apache-runc name: php-apache-runc spec: replicas: 1 selector: matchLabels: run: php-apache-runc template: metadata: labels: run: php-apache-runc spec: containers: - image: registry.k8s.io/hpa-example imagePullPolicy: Always name: php-apache ports: - containerPort: 80 protocol: TCP resources: requests: cpu: 200m restartPolicy: Always --- apiVersion: v1 kind: Service metadata: name: php-apache-runc spec: ports: - port: 80 protocol: TCP targetPort: 80 selector: run: php-apache-runc sessionAffinity: None type: ClusterIP