automated ingress change daemon - based on k8s services
kubectl apply -f https://raw.githubusercontent.com/slawekgh/autoingress/master/autoingress.yaml
namespace "autoingress" created
serviceaccount "autoingress-serviceaccount" created
clusterrole.rbac.authorization.k8s.io "autoingress-clusterrole" created
clusterrolebinding.rbac.authorization.k8s.io "autoingress-clusterrole-binding" created
configmap "autoingress-configuration" created
deployment.extensions "autoingress" created
apiVersion: v1
kind: Service
metadata:
labels:
run: service1
auto_ingress: 'servicename_serviceurlpath_serviceport'
name: service1
spec:
ports:
- port: 80
protocol: TCP
targetPort: 80
selector:
run: website
# kubectl apply -f service1.yaml
service "serwis1" created
spec:
rules:
- host: www.mysite.com
http:
paths:
- backend:
serviceName: servicename
servicePort: serviceport
path: /serviceurlpath