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
# 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 |
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
apiVersion: v2 | |
name: harperdb | |
description: A Helm chart of the HarperDB database | |
type: application | |
version: 0.1.0 |
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
az aks create \ | |
-n harperdb-helm \ | |
-g harperdb-helm \ | |
-l southcentralus \ | |
-s Standard_B2s \ | |
--generate-ssh-keys \ | |
-c 1 |
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
kubectl port-forward svc/harperdb 9925:9925 -n database |
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
NAME READY UP-TO-DATE AVAILABLE AGE | |
harperdb 1/1 1 1 20m |
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
# manifests.yml | |
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: harperdb-data | |
namespace: database | |
spec: | |
resources: | |
requests: | |
storage: 2Gi |
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
apiVersion: v1 | |
kind: Service | |
metadata: | |
name: harperdb | |
namespace: database | |
spec: | |
selector: | |
app: harperdb | |
ports: | |
- port: 9925 |
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
apiVersion: v1 | |
kind: PersistentVolumeClaim | |
metadata: | |
name: harperdb-data | |
namespace: database | |
spec: | |
resources: | |
requests: | |
storage: 2Gi # We'll request 2GB of storage | |
accessModes: |
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
NAME STATUS ROLES AGE VERSION | |
aks-agentpool-17395436-vmss000000 Ready agent 2m6s v1.22.6 |
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
docker run -d \ | |
-e HDB_ADMIN_USERNAME=user \ | |
-e HDB_ADMIN_PASSWORD=password \ | |
-p 9925:9925 \ | |
-v $PWD/.hdb:/opt/harperdb/hdb \ | |
harperdb/harperdb |