Skip to content

Instantly share code, notes, and snippets.

View sudhanshu456's full-sized avatar
🐢

Sudhanshu Prajapati sudhanshu456

🐢
View GitHub Profile
@sudhanshu456
sudhanshu456 / tcsrio_project.ipynb
Created August 15, 2020 17:40
tcsrio_project.ipynb
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

What / Why

Deploy key is a SSH key set in your repo to grant client read-only (as well as r/w, if you want) access to your repo.

As the name says, its primary function is to be used in the deploy process in replace of username/password, where only read access is needed. Therefore keep the repo safe from the attack, in case the server side is fallen.

How to

  1. Generate a ssh key
---
# Source: demo-app/templates/serviceaccount.yaml
apiVersion: v1
kind: ServiceAccount
metadata:
name: service1-demo-app
labels:
helm.sh/chart: demo-app-0.1.0
app.kubernetes.io/name: demo-app
app.kubernetes.io/instance: service1
@sudhanshu456
sudhanshu456 / grafana-dashboard.json
Created March 31, 2023 09:37
Grafana dashboard for Getting Started with Monitoring: Fluent Bit and Prometheus Metrics 101
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
@sudhanshu456
sudhanshu456 / Kubernetes-Metrics-Fluent-Bit.json
Created May 5, 2023 07:15
Kubernetes Metrics using Fluent Bit
{
"__inputs": [
{
"name": "DS_GRAFANACLOUD-CALYPTIA-PROM",
"label": "grafanacloud-CALYPTIA-prom",
"description": "",
"type": "datasource",
"pluginId": "prometheus",
"pluginName": "Prometheus"
}
@sudhanshu456
sudhanshu456 / Metrics-From-Multiple-Sources.json
Created May 5, 2023 09:30
Metrics From Multiple Sources -- Fluent Bit
{
"annotations": {
"list": [
{
"builtIn": 1,
"datasource": {
"type": "grafana",
"uid": "-- Grafana --"
},
"enable": true,
services:
jekyll:
image: bretfisher/jekyll-serve
volumes:
- .:/site
ports:
- '4000:4000'