Skip to content

Commit

Permalink
Added loadbalancer demo
Browse files Browse the repository at this point in the history
  • Loading branch information
qtsathish committed Apr 17, 2021
1 parent 5bbd32c commit 53adb3b
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions April21/azurespecific/networking/admin-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: admin-service-deployment
labels:
app: admin-service
spec:
replicas: 3
minReadySeconds: 5
selector:
matchLabels:
app: admin-service
environment: production
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 25%
maxUnavailable: 25%
template:
metadata:
labels:
app: admin-service
environment: production
spec:
containers:
- name: httpd-container
image: httpd
ports:
- containerPort: 80
protocol: TCP
---
apiVersion: v1
kind: Service
metadata:
name: admin-service
spec:
type: LoadBalancer
selector:
app: admin-service
ports:
- port: 80
targetPort: 80

0 comments on commit 53adb3b

Please sign in to comment.