k8s/external-services/kanban.yaml

110 lines
1.8 KiB
YAML
Raw Normal View History

---
apiVersion: v1
kind: Service
metadata:
name: kanban
namespace: external-services
spec:
type: ClusterIP
ports:
- name: http
port: 80
...
---
apiVersion: discovery.k8s.io/v1
kind: EndpointSlice
metadata:
name: kanban
namespace: external-services
labels:
kubernetes.io/service-name: kanban
addressType: IPv4
ports:
- name: http
appProtocol: http
protocol: TCP
2023-07-17 19:20:14 +00:00
port: 8080
endpoints:
- addresses:
2024-03-09 01:43:10 +00:00
- "192.168.0.18"
conditions:
ready: true
...
---
apiVersion: cert-manager.io/v1
kind: Certificate
metadata:
name: kanban-cert
namespace: istio-system
spec:
secretName: kanban-cert
commonName: kanban.minhas.io
dnsNames:
- kanban.minhas.io
issuerRef:
name: letsencrypt-prod
kind: ClusterIssuer
group: cert-manager.io
...
---
apiVersion: networking.istio.io/v1beta1
kind: Gateway
metadata:
name: kanban-gateway
namespace: external-services
spec:
selector:
istio: ingressgateway
servers:
- port:
number: 443
name: https
protocol: HTTPS
tls:
mode: SIMPLE
credentialName: kanban-cert
hosts:
- kanban.minhas.io
...
---
apiVersion: networking.istio.io/v1beta1
kind: ServiceEntry
metadata:
name: kanban
namespace: external-services
spec:
hosts:
- kanban.minhas.io
addresses:
- 0.0.0.0/0
ports:
2023-07-17 19:20:14 +00:00
- number: 8080
name: kanban
protocol: HTTP
location: MESH_EXTERNAL
resolution: STATIC
endpoints:
2024-03-09 01:43:10 +00:00
- address: 192.168.0.18
...
---
apiVersion: networking.istio.io/v1beta1
kind: VirtualService
metadata:
name: kanban-gateway
namespace: external-services
spec:
hosts:
- kanban.minhas.io
gateways:
- kanban-gateway
http:
- match:
- uri:
prefix: /
route:
- destination:
port:
number: 80
host: kanban
...