Skip to content

Commit

Permalink
Test SMP for alexandrevilain#793
Browse files Browse the repository at this point in the history
  • Loading branch information
yujunz committed Sep 1, 2024
0 parents commit 9ed78cf
Show file tree
Hide file tree
Showing 5 changed files with 73 additions and 0 deletions.
2 changes: 2 additions & 0 deletions base/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
resources:
- resources.yaml
22 changes: 22 additions & 0 deletions base/resources.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: myApp
spec:
selector:
matchLabels:
app: myApp
template:
metadata:
labels:
app: myApp
spec:
containers:
- name: myApp
image: nginx:1.7.9
volumeMounts:
- name: myApp
mountPath: /usr/share/nginx/html
volumes:
- name: myApp
emptyDir: {}
27 changes: 27 additions & 0 deletions overrided.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: myApp
spec:
selector:
matchLabels:
app: myApp
template:
metadata:
labels:
app: myApp
spec:
containers:
- image: nginx:1.7.9
name: myApp
volumeMounts:
- mountPath: /etc/extra
name: extra-volume
- mountPath: /usr/share/nginx/html
name: myApp
volumes:
- name: extra-volume
secret:
secretName: test-secret
- emptyDir: {}
name: myApp
5 changes: 5 additions & 0 deletions overrides/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
resources:
- ../base

patchesStrategicMerge:
- patches.yaml
17 changes: 17 additions & 0 deletions overrides/patches.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
apiVersion: apps/v1
kind: Deployment
metadata:
name: myApp
spec:
template:
spec:
containers:
- name: myApp
volumeMounts:
- name: extra-volume
mountPath: /etc/extra
volumes:
- name: extra-volume
secret:
secretName: test-secret

0 comments on commit 9ed78cf

Please sign in to comment.