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

fix various kustomize issue #229

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
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
20 changes: 10 additions & 10 deletions kubernetes/kustomize/application/configmap.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
# apiVersion: v1
# kind: ConfigMap
# metadata:
# name: example-config
# namespace: example
# data:
# config.json: |
# {
# "environment" : "dev"
# }
apiVersion: v1
kind: ConfigMap
metadata:
name: example-config
namespace: example
data:
config.json: |
{
"environment" : "dev"
}
12 changes: 7 additions & 5 deletions kubernetes/kustomize/application/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
resources:
- namespace.yaml
- deployment.yaml
- service.yaml
- configmap.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- namespace.yaml
- deployment.yaml
- service.yaml
- configmap.yaml
10 changes: 6 additions & 4 deletions kubernetes/kustomize/environments/development/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
bases:
- ../../application
patches:
- replica_count.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../application
patches:
- path: replica_count.yaml
34 changes: 18 additions & 16 deletions kubernetes/kustomize/environments/production/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
bases:
- ../../application
patches:
- replica_count.yaml
- resource_limits.yaml
configMapGenerator:
- name: example-config
namespace: example
#behavior: replace
files:
- configs/config.json
patchesStrategicMerge:
- env.yaml
images:
- name: aimvector/python
newTag: 1.0.1
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- ../../application
patches:
- path: replica_count.yaml
- path: resource_limits.yaml
- path: env.yaml

configMapGenerator:
- name: example-config
namespace: example
behavior: replace
files:
- configs/config.json
images:
- name: aimvector/python
newTag: 1.0.1