Skip to content

Instantly share code, notes, and snippets.

View khaosdoctor's full-sized avatar
:shipit:
Always trying, never giving up

Lucas Santos khaosdoctor

:shipit:
Always trying, never giving up
View GitHub Profile
helm template ./harperdb \
-n database \
--set env.ADMIN_USERNAME=harperdb \
--set env.ADMIN_PASSWORD=harperdb
name: harperdb
service:
port: 9925
env:
ADMIN_USERNAME:
ADMIN_PASSWORD:
apiVersion: v1
kind: Service
metadata:
name: {{ .Values.name }}
namespace: {{ default .Release.Namespace .Values.namespace }}
spec:
selector:
app: {{ .Values.name }}
ports:
- port: {{ .Values.service.port }}
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: {{ .Values.name}}-data
namespace: {{ default .Release.Namespace .Values.namespace }}
spec:
resources:
requests:
storage: 2Gi # We'll request 2GB of storage
accessModes:
# Deployment for HarperDB
apiVersion: apps/v1
kind: Deployment
metadata:
name: {{ .Values.name }}
namespace: {{ default .Release.Namespace .Values.namespace }}
spec:
selector:
matchLabels:
app: {{ .Values.name }} # group all the pods under the same label
apiVersion: v2
name: harperdb
description: A Helm chart of the HarperDB database
type: application
version: 0.1.0
az aks create \
-n harperdb-helm \
-g harperdb-helm \
-l southcentralus \
-s Standard_B2s \
--generate-ssh-keys \
-c 1
# Deployment for HarperDB
apiVersion: apps/v1
kind: Deployment
metadata:
name: harperdb
namespace: database # note the namespace we created earlier
spec:
selector:
matchLabels:
app: harperdb # group all the pods under the same label
@khaosdoctor
khaosdoctor / api.yaml
Last active November 25, 2022 23:38
Código fonte para o vídeo de hospedagem Kubernetes com Azure: https://www.youtube.com/watch?v=gbZ-rKfuwpE
apiVersion: apps/v1
kind: Deployment
metadada:
name: vote-api
labels:
app: vote-api
spec:
selector:
matchLabels:
app: vote-api
@khaosdoctor
khaosdoctor / 1-criar-cluster-kind.sh
Last active February 22, 2023 23:39
Scripts e comandos que eu faço no vídeo sobre KinD com Kubernetes: https://www.youtube.com/watch?v=dL19dSGKZoc
kind create cluster --name demo-cluster
kind get clusters
kubectl config get-contexts