Skip to content

Commit

Permalink
Add files for Istio gateway and Redis deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyshah83 committed Jul 4, 2023
1 parent b89c51f commit 375a994
Show file tree
Hide file tree
Showing 6 changed files with 45 additions and 5 deletions.
17 changes: 17 additions & 0 deletions istio/gateway.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: networking.istio.io/v1alpha3
kind: Gateway
metadata:
name: redis-gateway
namespace: spring-services
spec:
# The selector matches the ingress gateway pod labels.
# If you installed Istio using Helm following the standard documentation, this would be "istio=ingress"
selector:
istio: ingressgateway
servers:
- port:
number: 80
name: http
protocol: HTTP
hosts:
- '*'
19 changes: 19 additions & 0 deletions istio/http/redis-virtualsvc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: redis-virtual-svc
namespace: spring-services
spec:
hosts:
- '*'
gateways:
- redis-gateway
http:
- match:
- uri:
prefix: '/'
route:
- destination:
host: redis-svc.spring-services.svc.cluster.local
port:
number: 8761
7 changes: 7 additions & 0 deletions istio/peer-authentication.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
apiVersion: security.istio.io/v1beta1
kind: PeerAuthentication
metadata:
name: spring-services-mtls
spec:
mtls:
mode: STRICT
5 changes: 0 additions & 5 deletions k8s-apps/nginx-ingress.yaml

This file was deleted.

1 change: 1 addition & 0 deletions k8s-apps/redis_svc.yml → k8s-apps/redis_cip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: v1
kind: Service
metadata:
name: redis-svc
namespace: spring-services
labels:
app: redis
spec:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ apiVersion: apps/v1
kind: Deployment
metadata:
name: spring-data-reactive-redis
namespace: spring-services
labels:
app: redis
spec:
Expand Down

0 comments on commit 375a994

Please sign in to comment.