Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[do-not-merge] feat: kustomize proof-of-concept #63

Closed
wants to merge 18 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
172 changes: 0 additions & 172 deletions hokusai/production.yml.j2

This file was deleted.

16 changes: 16 additions & 0 deletions hokusai/production/cron1/kustomization.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
bases:
- ../base/cron_base

patchesStrategicMerge:
- patch.yml

nameSuffix: -cron1

patchesJson6902:
- target:
kind: CronJob
name: {{ project_name }}-cron
patch: |-
- op: replace
path: /spec/jobTemplate/spec/template/spec/containers/0/name
value: {{ project_name }}-cron-cron1
15 changes: 15 additions & 0 deletions hokusai/production/cron1/patch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
---
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: {{ project_name }}-cron
spec:
schedule: 23 10 * * MON
jobTemplate:
spec:
template:
spec:
containers:
- name: {{ project_name }}-cron
args:
- bar
3 changes: 3 additions & 0 deletions hokusai/production/kustomization.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
resources:
- main
- cron1
8 changes: 8 additions & 0 deletions hokusai/production/main/kustomization.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
bases:
- ../base/deployment_base
- ../base/hpa_base
- ../base/service_base
- ../base/ingress_base

patchesStrategicMerge:
- patch.yml
8 changes: 8 additions & 0 deletions hokusai/production/main/patch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
apiVersion: autoscaling/v1
kind: HorizontalPodAutoscaler
metadata:
name: {{ project_name }}-web
spec:
minReplicas: 2
maxReplicas: 3
Loading