Skip to content

Commit

Permalink
Added 05-kubernetes-services samples
Browse files Browse the repository at this point in the history
  • Loading branch information
zashraf1985 committed Dec 12, 2024
1 parent 4c5618f commit 012ef36
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 0 deletions.
12 changes: 12 additions & 0 deletions kubernetes/05-service/clusterip-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
apiVersion: v1
kind: Service
metadata:
name: my-clusterip-service
spec:
selector:
app: nginx
ports:
- protocol: TCP
port: 80
targetPort: 80

13 changes: 13 additions & 0 deletions kubernetes/05-service/loadbalancer-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: my-loadbalancer-service
spec:
selector:
app: nginx
ports:
- protocol: TCP
port: 80
targetPort: 80
type: LoadBalancer

13 changes: 13 additions & 0 deletions kubernetes/05-service/service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
apiVersion: v1
kind: Service
metadata:
name: my-nodeport-service
spec:
selector:
app: nginx
ports:
- protocol: TCP
port: 80
targetPort: 80
type: NodePort

0 comments on commit 012ef36

Please sign in to comment.