-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implementing inode full detection support, closes #18
- Loading branch information
1 parent
7c538b3
commit fce880d
Showing
4 changed files
with
149 additions
and
12 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
.PHONY: deps run run-hot start lint test-local help | ||
.DEFAULT_GOAL := help | ||
|
||
SHELL = bash | ||
|
||
# Install dependencies | ||
deps: | ||
pip3 install -r requirements.txt | ||
|
||
# This is our default logic for "make run" or "make start", to use the backgrounded. This is dry-run'd to prevent it from doing anything while developing | ||
run: deps | ||
@echo -e "\n----- Starting service locally -----" | ||
# NOTE: In here is where you can throw your secrets and such to avoid it from being committed | ||
touch unused-local-envs.sh | ||
source unused-local-envs.sh | ||
DRY_RUN=true \ | ||
VERBOSE=true \ | ||
python3 main.py | ||
|
||
# Warning this will run it "hot" with no dry-run in place | ||
run-hot: deps | ||
@echo -e "\n----- Starting service locally -----" | ||
# NOTE: In here is where you can throw your secrets and such to avoid it from being committed | ||
touch unused-local-envs.sh | ||
source unused-local-envs.sh | ||
python3 main.py | ||
|
||
# Alternate for "run" | ||
start: run | ||
|
||
# Lint our code | ||
lint: deps | ||
black . | ||
|
||
test-local: | ||
@echo -e "TODO - Add tests" | ||
|
||
help: | ||
@echo -e "Makefile options possible\n------------------------------" | ||
@echo -e "make deps # Install dependencies" | ||
@echo -e "make run # Run service locally" | ||
@echo -e "make start # (alternate) Run service locally" |
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,39 @@ | ||
# This example below will create an PVC using the default StorageClass which you should | ||
# have configured to AllowVolumeExpansion set to True before using this. When the pod | ||
# boots up it will automatically fill up the PVC disk, which should if you have the | ||
# volume autoscaler installed automatically expand the volume based on the default parameters | ||
# | ||
# Simply run: kubectl apply -f examples/simple-pod-with-pvc.yaml | ||
--- | ||
kind: PersistentVolumeClaim | ||
apiVersion: v1 | ||
metadata: | ||
name: test-claim1 | ||
spec: | ||
accessModes: | ||
- ReadWriteOnce | ||
resources: | ||
requests: | ||
storage: 3G | ||
--- | ||
apiVersion: v1 | ||
kind: Pod | ||
metadata: | ||
name: test-claim1 | ||
spec: | ||
containers: | ||
- name: write | ||
image: alpine:latest | ||
command: ["/bin/sh"] | ||
args: ["-c", "cd /mnt/pv; i=0; while true; do touch \"file_$((i++))\"; done"] | ||
volumeMounts: | ||
- mountPath: "/mnt/pv" | ||
name: test-volume | ||
stdin: true | ||
stdinOnce: true | ||
tty: true | ||
volumes: | ||
- name: test-volume | ||
persistentVolumeClaim: | ||
claimName: test-claim1 | ||
restartPolicy: Never |
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