Skip to content

Commit

Permalink
add: proxy and kibana service can be access via ingress
Browse files Browse the repository at this point in the history
  • Loading branch information
leveryd committed Feb 23, 2023
1 parent 9a9bd62 commit 03f91ac
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 8 deletions.
6 changes: 2 additions & 4 deletions templates/elk/kibana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,12 @@ apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: kibana
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$2
spec:
rules:
- host: {{.Values.console_domain}}
- host: kibana.{{.Values.console_domain}}
http:
paths:
- path: /kibana(/|$)(.*) # match all paths that begin with /argo/
- path: / # match all paths that begin with /argo/
pathType: ImplementationSpecific
backend:
service:
Expand Down
16 changes: 16 additions & 0 deletions templates/xray/ingress.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: proxy
spec:
rules:
- host: proxy.{{.Values.console_domain}}
http:
paths:
- path: / # match all paths that begin with /argo/
pathType: ImplementationSpecific
backend:
service:
name: {{.Values.xray_proxy_service}} # name of the service
port:
number: {{.Values.xray_proxy_port}}
1 change: 0 additions & 1 deletion templates/xray/xray-proxy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,3 @@ spec:
- protocol: TCP
port: {{.Values.xray_proxy_port}}
targetPort: 80
type: NodePort
8 changes: 5 additions & 3 deletions values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,13 @@ elasticsearch:
- name: init-script
mountPath: /tmp/init.py
subPath: init.py
rbac:
create: true

kibana:
elasticsearchHosts: "http://elasticsearch-master:9200"
kibanaConfig:
kibana.yml: |
server.base="/kibana"
kibana.yml: |
server.basePath="/kibana"
server.host="0.0.0.0"
server.rewriteBasePath=true
# healthCheckPath: "/kibana"

0 comments on commit 03f91ac

Please sign in to comment.