Skip to content

Commit

Permalink
Create deployment.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
DeekshithSN committed Dec 4, 2021
1 parent eb7e8ee commit 4607fc3
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions kubernetes-vpa/vpa/deployment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
apiVersion: v1
kind: Service
metadata:
name: application-cpu
labels:
app: application-cpu
spec:
type: ClusterIP
selector:
app: application-cpu
ports:
- protocol: TCP
name: http
port: 80
targetPort: 80
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: application-cpu
labels:
app: application-cpu
spec:
selector:
matchLabels:
app: application-cpu
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
template:
metadata:
labels:
app: application-cpu
spec:
containers:
- name: application-cpu
image: aimvector/application-cpu:v1.0.2
imagePullPolicy: Always
ports:
- containerPort: 80
resources:
requests:
memory: "50Mi"
cpu: "500m"
limits:
memory: "500Mi"
cpu: "2000m"

0 comments on commit 4607fc3

Please sign in to comment.