59 lines
1.2 KiB
YAML
59 lines
1.2 KiB
YAML
# not in use. remove and add to kb
|
|
# ingress exposing and endpoint to an docker running on another server without kubernets
|
|
apiVersion: v1
|
|
kind: Endpoints
|
|
metadata:
|
|
name: cloud-limbosolutions-com-service
|
|
namespace: cloud-limbosolutions-com
|
|
subsets:
|
|
- addresses:
|
|
- ip: 192.168.13.2
|
|
ports:
|
|
- name: app
|
|
port: 4000
|
|
protocol: TCP
|
|
|
|
|
|
---
|
|
|
|
apiVersion: v1
|
|
kind: Service
|
|
metadata:
|
|
name: cloud-limbosolutions-com-service
|
|
namespace: cloud-limbosolutions-com
|
|
spec:
|
|
ports:
|
|
- name: app
|
|
port: 4000
|
|
protocol: TCP
|
|
targetPort: 4000
|
|
clusterIP: None
|
|
type: ClusterIP
|
|
|
|
|
|
---
|
|
apiVersion: networking.k8s.io/v1
|
|
kind: Ingress
|
|
metadata:
|
|
name: cloud-limbosolutions-com-ingress
|
|
namespace: cloud-limbosolutions-com
|
|
# annotations:
|
|
# cert-manager.io/cluster-issuer: "letsencrypt-staging"
|
|
# traefik.ingress.kubernetes.io/router.entrypoints: websecure
|
|
spec:
|
|
ingressClassName: traefik
|
|
# tls:
|
|
# - hosts:
|
|
# - minio.example.com
|
|
# secretName: tls-example-com
|
|
rules:
|
|
- host: cloud.icharus.dev.lan
|
|
http:
|
|
paths:
|
|
- backend:
|
|
service:
|
|
name: cloud-limbosolutions-com-service
|
|
port:
|
|
number: 4000
|
|
path: /
|
|
pathType: Prefix |