-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce8a43d
commit 5dcec8a
Showing
5 changed files
with
167 additions
and
41 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,121 @@ | ||
apiVersion: v1 | ||
kind: Namespace | ||
metadata: | ||
name: grafana | ||
labels: | ||
name: grafana | ||
--- | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: grafana | ||
namespace: grafana | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
--- | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: grafana-datasources | ||
namespace: grafana | ||
data: | ||
prometheus.yaml: |- | ||
{ | ||
"apiVersion": 1, | ||
"datasources": [ | ||
{ | ||
"access":"proxy", | ||
"editable": true, | ||
"name": "prometheus", | ||
"orgId": 1, | ||
"type": "prometheus", | ||
"url": "http://prometheus.prometheus.svc:9090", | ||
"version": 1 | ||
} | ||
] | ||
} | ||
--- | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
labels: | ||
app: grafana | ||
name: grafana | ||
namespace: grafana | ||
spec: | ||
selector: | ||
matchLabels: | ||
app: grafana | ||
template: | ||
metadata: | ||
labels: | ||
app: grafana | ||
spec: | ||
securityContext: | ||
fsGroup: 472 | ||
supplementalGroups: | ||
- 0 | ||
containers: | ||
- name: grafana | ||
image: grafana/grafana:latest | ||
imagePullPolicy: IfNotPresent | ||
ports: | ||
- containerPort: 3000 | ||
name: http-grafana | ||
protocol: TCP | ||
readinessProbe: | ||
failureThreshold: 3 | ||
httpGet: | ||
path: /robots.txt | ||
port: 3000 | ||
scheme: HTTP | ||
initialDelaySeconds: 10 | ||
periodSeconds: 30 | ||
successThreshold: 1 | ||
timeoutSeconds: 2 | ||
livenessProbe: | ||
failureThreshold: 3 | ||
initialDelaySeconds: 30 | ||
periodSeconds: 10 | ||
successThreshold: 1 | ||
tcpSocket: | ||
port: 3000 | ||
timeoutSeconds: 1 | ||
resources: | ||
requests: | ||
cpu: 250m | ||
memory: 750Mi | ||
volumeMounts: | ||
- mountPath: /var/lib/grafana | ||
name: grafana | ||
- mountPath: /etc/grafana/provisioning/datasources | ||
name: grafana-datasources | ||
readOnly: false | ||
volumes: | ||
- name: grafana | ||
persistentVolumeClaim: | ||
claimName: grafana | ||
- name: grafana-datasources | ||
configMap: | ||
defaultMode: 420 | ||
name: grafana-datasources | ||
--- | ||
apiVersion: v1 | ||
kind: Service | ||
metadata: | ||
name: grafana | ||
namespace: grafana | ||
spec: | ||
ports: | ||
- port: 3000 | ||
protocol: TCP | ||
targetPort: http-grafana | ||
selector: | ||
app: grafana | ||
sessionAffinity: None | ||
type: LoadBalancer | ||
--- |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
## Uncomment to add kubernetes route | ||
#apiVersion: route.openshift.io/v1 | ||
#kind: Route | ||
#metadata: | ||
# name: server-sent-events | ||
# namespace: sse | ||
#spec: | ||
# # host must conform to DNS 952 subdomain conventions | ||
# host: "sse-server-sent-events-.dev-shubhamvarshney.io" | ||
# port: | ||
# targetPort: 8080 | ||
# to: | ||
# kind: Service | ||
# name: server-sent-events | ||
# weight: 100 | ||
# tls: | ||
# termination: edge | ||
# insecureEdgeTerminationPolicy: Redirect | ||
# wildcardPolicy: None | ||
#--- |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
kubectl create namespace argocd | ||
kubectl apply -n argocd -f https://raw.githubusercontent.com/argoproj/argo-cd/stable/manifests/install.yaml | ||
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.0.0/deploy/static/provider/cloud/deploy.yaml | ||
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.0.0/deploy/static/provider/baremetal/deploy.yaml | ||
kubectl apply -f k8s/mysql.yaml | ||
kubectl apply -f k8s/kafka.yaml | ||
kubectl apply -f k8s/kafdrop.yaml | ||
kubectl create -f https://download.elastic.co/downloads/eck/2.9.0/crds.yaml | ||
kubectl apply -f https://download.elastic.co/downloads/eck/2.9.0/operator.yaml | ||
kubectl apply -f k8s/es.yaml | ||
kubectl create namespace prometheus | ||
helm install prometheus bitnami/kube-prometheus | ||
kubectl apply -f k8s/app.yaml | ||
helm install prometheus bitnami/kube-prometheus -n prometheus | ||
kubectl apply -f k8s/app.yaml | ||
kubectl apply -f k8s/grafana.yaml |
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