getElementsByName / tmp-doc

0 stars 0 forks source link

helm #21

Open getElementsByName opened 3 years ago

getElementsByName commented 3 years ago
CHART_NAME=postgresql

ADDITIONAL_OPTIONS=
COMMON_VALUES=--values ./values/default.values.yaml --values ./values/secret.values.yaml --values ./values/app.values.yaml
PRODUCTION_VALUES_OPTIONS=--values ./values/production.values.yaml
COMMON_OPTIONS=$(COMMON_VALUES) $(CHART_NAME) $(ADDITIONAL_OPTIONS)

.PHONY: *

default:
    @echo DEPLOY postgresql CHART

helm-init-repo:
    helm repo add bitnami https://charts.bitnami.com/bitnami
    helm search postgresql

helm-dependency-update:
    helm dependency update

deploy.development:
    ncc helm upgrade --install $(COMMON_OPTIONS) $(VALUES_OPTIONS) ./

deploy.production:
    ncc helm upgrade --install $(COMMON_OPTIONS) $(PRODUCTION_VALUES_OPTIONS) $(VALUES_OPTIONS) ./

delete:
    ncc helm delete $(CHART_NAME) --purge
    kubectl delete pvc -l app.kubernetes.io/name=$(CHART_NAME)

expose:
    kubectl expose service/$(CHART_NAME) --name gateway-$(CHART_NAME) --type LoadBalancer
getElementsByName commented 3 years ago

configMap