idk i brought Istio and some other things

This commit is contained in:
Oriol
2023-04-08 18:41:41 +01:00
parent 4e9641201d
commit a924d8ba91
37 changed files with 2002 additions and 44 deletions

View File

@ -1,38 +1,98 @@
#
#---
#apiVersion: apps/v1
#kind: Deployment
#metadata:
# name: nginx-deployment
#spec:
# selector:
# matchLabels:
# app: nginx-backend
# replicas: 2 # tells deployment to run 2 pods matching the template
# template:
# metadata:
# labels:
# app: nginx
# spec:
# containers:
# - name: nginx
# image: nginx:1.14.2
# ports:
# - containerPort: 80
#---
# Example of a Ingress "LB" that itterates between 3 instances
apiVersion: apps/v1
kind: Deployment
metadata:
name: nginxo-deploayment
labels:
environment: testin-lb1s
spec:
selector:
matchLabels:
applicasao: webpaggo
replicas: 1
template:
metadata:
labels:
applicasao: webpaggo
spec:
containers:
- name: nginxo
image: nginx
ports:
- containerPort: 80
name: http
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: whoami-traefik
labels:
environment: testin-lb1
spec:
selector:
matchLabels:
applicasao: webpaggo
replicas: 2
template:
metadata:
labels:
applicasao: webpaggo
spec:
containers:
- name: whoami
image: traefik/whoami
ports:
- containerPort: 80
name: http
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: httpago-deployment
labels:
environment: testin-lb1
spec:
selector:
matchLabels:
applicasao: webpaggo
replicas: 1
template:
metadata:
labels:
applicasao: webpaggo
spec:
containers:
- name: apache
image: httpd
ports:
- containerPort: 80
name: http
---
apiVersion: v1
kind: Service
metadata:
name: nginx-lb
name: ingressito
labels:
environment: testin-lb1
spec:
selector:
app: whoami-service
applicasao: webpaggo
ports:
- port: 80 # Published port
targetPort: 80 # Container port
# - port: 443 # Published port
# targetPort: 443 # Container port
- port: 80
targetPort: http
externalTrafficPolicy: Local
type: LoadBalancer
#---