Last active
June 26, 2016 14:13
-
-
Save playerjamesbattleground/dc840db9195d5dbb5fb766955b5328d0 to your computer and use it in GitHub Desktop.
property-management-blog-snippet
This file contains hidden or 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
7z a <<compressed_file_name>>.7z path/to/secret/file(s) -p<<password string>> |
This file contains hidden or 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
<context:property-placeholder | |
location="app-default.properties, | |
app/app-configmap.properties, | |
secret/app-secret.conf" | |
ignore-resource-not-found="true"/> | |
This file contains hidden or 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
config-<<Environment Name>> //Current environment names are dev, qat and prod | |
| | |
└── roles | |
├── configmaps //will be used as ConfigMap Kubernetes resources | |
│ ├── files | |
│ ├── <<Application name>> | |
│ │ └── <<property file1 name>>.properties | |
│ │ └── <<property file2 name>>.properties | |
│ │ └── more files... | |
│ │ | |
│ ├── <<More with same folder structure>> | |
│ | |
│ | |
└── secrets //will be used as Secret Kubernetes resource | |
│ | |
├── files | |
│ ├── <<application secret1>>.7z | |
│ ├── <<application secret2>>.7z |
This file contains hidden or 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
kubectl --namespace=development create configmap <<config-map-name>> --from-file path/to/particular/application/configmap/folder |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment