Skip to content

Commit

Permalink
adding image
Browse files Browse the repository at this point in the history
  • Loading branch information
Taiwolawal committed Feb 18, 2024
1 parent 983ede9 commit 8a8a809
Show file tree
Hide file tree
Showing 29 changed files with 2,170 additions and 4 deletions.
Binary file added Pasted Graphic 20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pasted Graphic 21.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pasted Graphic 22.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pasted Graphic 23.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pasted Graphic 24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added Pasted Graphic 40.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,15 @@
The Project is focus on implementing different use-case for istio

For cert-maneger to work correctly `--set meshConfig.ingressSelector=istio-gateway --set meshConfig.ingressService=istio-gateway` to be able to resolve http01 challenge from lets-encrypt

![alt text](<Pasted Graphic 20.png>)

![alt text](<Pasted Graphic 21.png>)

![alt text](<Pasted Graphic 22.png>)

![alt text](<Pasted Graphic 23.png>)

![alt text](<Pasted Graphic 24.png>)

![alt text](<Pasted Graphic 40.png>)
8 changes: 8 additions & 0 deletions app-01/0-namespace.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: staging
labels:
release: prometheus
istio-injection: enabled
31 changes: 31 additions & 0 deletions app-01/1-deployment-v1.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: first-app-v1
namespace: staging
spec:
replicas: 1
selector:
matchLabels:
app: first-app
version: v1
template:
metadata:
labels:
app: first-app
version: v1
istio: monitor
spec:
containers:
- image: wizhubdocker8s/istio-demo:latest
imagePullPolicy: Always
name: first-app
env:
- name: SERVICE
value: first-app
- name: VERSION
value: v1
ports:
- name: http
containerPort: 8080
31 changes: 31 additions & 0 deletions app-01/2-deployment-v2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: first-app-v2
namespace: staging
spec:
replicas: 1
selector:
matchLabels:
app: first-app
version: v2
template:
metadata:
labels:
app: first-app
version: v2
istio: monitor
spec:
containers:
- image: wizhubdocker8s/istio-demo:latest
imagePullPolicy: Always
name: first-app
env:
- name: SERVICE
value: first-app
- name: VERSION
value: v2
ports:
- name: http
containerPort: 8080
12 changes: 12 additions & 0 deletions app-01/3-myapp-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
---
apiVersion: v1
kind: Service
metadata:
name: first-app
namespace: staging
spec:
ports:
- name: http
port: 8080
selector:
app: first-app
17 changes: 17 additions & 0 deletions app-01/4-destination-rule.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: first-app
namespace: staging
spec:
host: first-app
subsets:
- name: v1
labels:
app: first-app
version: v1
- name: v2
labels:
app: first-app
version: v2
19 changes: 19 additions & 0 deletions app-01/5-virtual-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: first-app
namespace: staging
spec:
hosts:
- first-app
http:
- route:
- destination:
host: first-app
subset: v1
weight: 0
- destination:
host: first-app
subset: v2
weight: 100
19 changes: 19 additions & 0 deletions app-01/6-client.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
apiVersion: v1
kind: Namespace
metadata:
name: backend
labels:
istio-injection: enabled
---
apiVersion: v1
kind: Pod
metadata:
name: client
namespace: backend
spec:
containers:
- name: client
image: curlimages/curl:latest
command: ["/bin/sh", "-c", "--"]
args: ["while true; do sleep 30; done;"]
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions eks-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ metadata:

nodeGroups:
- name: ng-1
instanceType: t3.medium
desiredCapacity: 1
minSize: 1
maxSize: 2
instanceType: t3a.xlarge
desiredCapacity: 2
minSize: 2
maxSize: 4
volumeSize: 40
volumeType: gp2
tags:
Expand Down
15 changes: 15 additions & 0 deletions gateway-prom-service.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
apiVersion: v1
kind: Service
metadata:
name: gateway-prom
namespace: istio-ingress
labels:
app: gateway
spec:
ports:
- name: metrics
port: 15090
selector:
app: gateway
istio: gateway
18 changes: 18 additions & 0 deletions gateway-service-monitor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
apiVersion: monitoring.coreos.com/v1
kind: ServiceMonitor
metadata:
name: myapp
namespace: monitoring
labels:
release: prometheus
spec:
namespaceSelector:
matchNames:
- istio-ingress
selector:
matchLabels:
app: gateway
endpoints:
- port: metrics
path: /stats/prometheus
Loading

0 comments on commit 8a8a809

Please sign in to comment.