Skip to content
Permalink
Browse files

Add forecastle

  • Loading branch information...
REBELinBLUE committed May 8, 2019
1 parent 9aecaa1 commit d726cbbc6f3d38c4b55f9165aeb556120f106ba8
@@ -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.
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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

0 comments on commit d726cbb

Please sign in to comment.
You can’t perform that action at this time.