Add basic Kustomize build flow

This commit is contained in:
Rob Watson 2022-05-05 17:39:08 +02:00
parent f6794b712c
commit 7944501fa2
4 changed files with 22 additions and 0 deletions

2
.gitignore vendored
View File

@ -1 +1,3 @@
*.tgz
secrets/

11
deploy/Makefile Normal file
View File

@ -0,0 +1,11 @@
.PHONY: dev prod
dev:
@kubectl kustomize --enable-helm dev
prod: load-prod-env
@kubectl kustomize --enable-helm prod | envsubst
load-prod-env:
$(eval include prod/secrets/env)
$(eval export)

View File

@ -0,0 +1,7 @@
# Secrets
TODO: find a way to encrypt these secrets at rest on dev machine.
### exporter-password
The basic auth password required to access node-exporter endpoints. See ansible-vault.

View File

@ -0,0 +1,2 @@
NETFLUX_PRIVATE_IP=1.2.3.4
POSTGRESQL_IP=1.2.3.4