Created
January 28, 2022 17:19
-
-
Save rmalenko/fc7c0f515cafa578f14dcafee1654f9c to your computer and use it in GitHub Desktop.
Istio for kubernetes dashboard
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: v1 | |
kind: Service | |
... | |
spec: | |
ports: | |
- name: http | |
protocol: TCP | |
port: 80 | |
targetPort: http | |
nodePort: 31482 | |
... | |
--- | |
apiVersion: networking.istio.io/v1alpha3 | |
kind: Gateway | |
metadata: | |
name: http-gateway | |
namespace: istio-system | |
spec: | |
selector: | |
istio: ingressgateway | |
servers: | |
- port: | |
number: 80 | |
name: http | |
protocol: HTTP | |
hosts: | |
- "*" | |
apiVersion: apps/v1 | |
kind: Deployment | |
metadata: | |
name: kubernetes-dashboard | |
... | |
spec: | |
... | |
containers: | |
- name: kubernetes-dashboard | |
image: kubernetesui/dashboard:v2.3.1 | |
args: | |
- '--namespace=istio-system' | |
- '--sidecar-host=http://127.0.0.1:8000' | |
- '--enable-insecure-login' | |
- '--token-ttl=6000' | |
- '--insecure-bind-address=0.0.0.0' | |
- '--insecure-port=9090' | |
ports: | |
- name: http | |
containerPort: 9090 | |
protocol: TCP | |
... | |
--- | |
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: kubedash-vservice | |
namespace: istio-system | |
spec: | |
hosts: | |
- "jazz.lnk" | |
gateways: | |
- http-gateway | |
http: | |
- match: | |
- uri: | |
prefix: /kubedash | |
route: | |
- destination: | |
host: kubernetes-dashboard | |
port: | |
number: 80 | |
--- | |
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: kubedash-vservice | |
namespace: istio-system | |
spec: | |
hosts: | |
- "jazz.lnk" | |
gateways: | |
- http-gateway | |
http: | |
- match: | |
- uri: | |
prefix: /kubedash | |
route: | |
- destination: | |
host: kubernetes-dashboard | |
port: | |
number: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment