-
Notifications
You must be signed in to change notification settings - Fork 456
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:support custom folder expression and annotation setting folder
- Loading branch information
houkunpeng
committed
Feb 21, 2023
1 parent
dc40b36
commit 5decf72
Showing
3 changed files
with
79 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
apiVersion: apps/v1 | ||
kind: Deployment | ||
metadata: | ||
name: local-path-rwx-example | ||
labels: | ||
app: local-path-rwx-example | ||
spec: | ||
replicas: 2 | ||
selector: | ||
matchLabels: | ||
app: local-path-rwx-example | ||
template: | ||
metadata: | ||
labels: | ||
app: local-path-rwx-example | ||
spec: | ||
topologySpreadConstraints: | ||
- maxSkew: 1 | ||
topologyKey: kubernetes.io/hostname | ||
whenUnsatisfiable: DoNotSchedule | ||
labelSelector: | ||
matchLabels: | ||
app: local-path-rwx-example | ||
containers: | ||
- name: pause | ||
image: busybox | ||
imagePullPolicy: IfNotPresent | ||
command: | ||
- /bin/sh | ||
- -c | ||
- 'hostname >> /data/shared.txt; sleep 3; cat /data/shared.txt; sleep infinity' | ||
volumeMounts: | ||
- name: volv | ||
mountPath: /data | ||
ports: | ||
- containerPort: 80 | ||
volumes: | ||
- name: volv | ||
persistentVolumeClaim: | ||
claimName: local-path-rwx-example |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Plesase note, configuration of the Local Path Provisioner should be set correspondingly | ||
# for this to work: | ||
# | ||
# data: | ||
# config.json: |- | ||
# { | ||
# "sharedFileSystemPath": "/shared/fs/mounted/on/the/same/path/on/all/nodes" | ||
# } | ||
# | ||
apiVersion: v1 | ||
kind: PersistentVolumeClaim | ||
metadata: | ||
name: local-path-rwx-example | ||
spec: | ||
accessModes: | ||
- ReadWriteMany | ||
resources: | ||
requests: | ||
storage: 1Gi | ||
storageClassName: local-path | ||
volumeMode: Filesystem |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters