Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save vamsijakkula/b7b561ebcf1a9ce37566bd9f1957065a to your computer and use it in GitHub Desktop.

Select an option

Save vamsijakkula/b7b561ebcf1a9ce37566bd9f1957065a to your computer and use it in GitHub Desktop.
php-apache.yml
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: vamsijakkula/php-hpa
ports:
- containerPort: 80
resources:
limits:
cpu: 500m
memory: 1Gi
requests:
cpu: 200m
memory: 0.5Gi
---
apiVersion: v1
kind: Service
metadata:
name: php-apache
labels:
run: php-apache
spec:
ports:
- port: 80
selector:
run: php-apache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment