12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- ---
- apiVersion: v1
- kind: Namespace
- metadata:
- name: whoami
- ---
- apiVersion: apps/v1
- kind: Deployment
- metadata:
- name: whoami
- namespace: whoami
- spec:
- selector:
- matchLabels:
- app: whoami
- replicas: 2
- template:
- metadata:
- labels:
- app: whoami
- spec:
- containers:
- - name: whoami
- image: traefik/whoami:v1.8
- ports:
- - containerPort: 80
- name: http-web-svc
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: whoami-service
- namespace: whoami
- spec:
- selector:
- app: whoami
- type: ClusterIP
- ports:
- - name: whoami-port
- protocol: TCP
- port: 80
- targetPort: http-web-svc
- ---
- apiVersion: traefik.containo.us/v1alpha1
- kind: IngressRoute
- metadata:
- name: whoami
- namespace: whoami
- spec:
- entryPoints:
- - websecure
- routes:
- - kind: Rule
- match: Host(`whoami.jibby.org`)
- services:
- - kind: Service
- name: whoami-service
- port: 80
- - kind: Rule
- match: Host(`whoami.lan.jibby.org`)
- services:
- - kind: Service
- name: whoami-service
- port: 80
- middlewares:
- - name: lanonly
- namespace: kube-system
|