Skip to content

Commit

Permalink
Add forecastle
Browse files Browse the repository at this point in the history
  • Loading branch information
REBELinBLUE committed May 8, 2019
1 parent 9aecaa1 commit d726cbb
Show file tree
Hide file tree
Showing 7 changed files with 125 additions and 0 deletions.
120 changes: 120 additions & 0 deletions setup/11-Others/forecastle.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,120 @@
---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: forecastle
namespace: infra
labels:
app: forecastle
annotations:
configmap.reloader.stakater.com/reload: forecastle
spec:
replicas: 1
revisionHistoryLimit: 2
selector:
matchLabels:
app: forecastle
template:
metadata:
labels:
app: forecastle
spec:
containers:
- name: forecastle
image: "rebelinblue/forecastle:1.0.0"
env:
- name: KUBERNETES_NAMESPACE
valueFrom:
fieldRef:
fieldPath: metadata.namespace
volumeMounts:
- name: forecastle-config
mountPath: /etc/forecastle
volumes:
- name: forecastle-config
configMap:
name: forecastle
serviceAccountName: forecastle
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: forecastle
namespace: infra
labels:
app: forecastle
---
kind: ClusterRole
apiVersion: rbac.authorization.k8s.io/v1
metadata:
name: forecastle-cluster-ingress-role
namespace: infra
labels:
app: forecastle
rules:
- apiGroups: ["", "extensions"]
resources: ["ingresses"]
verbs: ["get", "list"]
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: forecastle-cluster-ingress-role-binding
namespace: infra
labels:
app: forecastle
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: forecastle-cluster-ingress-role
subjects:
- kind: ServiceAccount
name: forecastle
namespace: infra
---
apiVersion: v1
kind: Service
metadata:
name: forecastle
namespace: infra
labels:
app: forecastle
spec:
ports:
- name: http
port: 80
protocol: TCP
targetPort: 3000
selector:
app: forecastle
---
apiVersion: v1
kind: ConfigMap
metadata:
name: forecastle
namespace: infra
labels:
app: forecastle
data:
config.yaml: |-
namespaces:
- infra
- test
- demo
- default
title: Forecastle
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: forecastle
namespace: infra
spec:
rules:
- host: forecastle.cluster.local
http:
paths:
- path: /
backend:
serviceName: forecastle
servicePort: 80
File renamed without changes.
1 change: 1 addition & 0 deletions setup/3-Traefik/ingress.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ metadata:
annotations:
ingress.kubernetes.io/auth-type: basic
ingress.kubernetes.io/auth-secret: dashboards-auth
forecastle.stakater.com/expose: "true"
# annotations:
# kubernetes.io/ingress.class: traefik
# traefik.ingress.kubernetes.io/frontend-entry-points: http,https
Expand Down
1 change: 1 addition & 0 deletions setup/4-Dashboard/dashboard.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ metadata:
traefik.ingress.kubernetes.io/frontend-entry-points: http,https
traefik.ingress.kubernetes.io/redirect-entry-point: https
traefik.ingress.kubernetes.io/redirect-permanent: "true"
forecastle.stakater.com/expose: "true"
spec:
rules:
- host: dashboard.cluster.local
Expand Down
1 change: 1 addition & 0 deletions setup/8-Logging/grafana.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,7 @@ metadata:
annotations:
ingress.kubernetes.io/auth-type: basic
ingress.kubernetes.io/auth-secret: dashboards-auth
forecastle.stakater.com/expose: "true"
spec:
rules:
- host: grafana.cluster.local
Expand Down
1 change: 1 addition & 0 deletions setup/9-Monitoring/alertmanager.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ metadata:
annotations:
ingress.kubernetes.io/auth-type: basic
ingress.kubernetes.io/auth-secret: dashboards-auth
forecastle.stakater.com/expose: "true"
spec:
rules:
- host: alertmanager.cluster.local
Expand Down
1 change: 1 addition & 0 deletions setup/9-Monitoring/prometheus.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -396,6 +396,7 @@ metadata:
annotations:
ingress.kubernetes.io/auth-type: basic
ingress.kubernetes.io/auth-secret: dashboards-auth
forecastle.stakater.com/expose: "true"
spec:
rules:
- host: prometheus.cluster.local
Expand Down

0 comments on commit d726cbb

Please sign in to comment.