Skip to content

Instantly share code, notes, and snippets.

@playerjamesbattleground
Last active June 26, 2016 14:13
Show Gist options
  • Save playerjamesbattleground/dc840db9195d5dbb5fb766955b5328d0 to your computer and use it in GitHub Desktop.
Save playerjamesbattleground/dc840db9195d5dbb5fb766955b5328d0 to your computer and use it in GitHub Desktop.
property-management-blog-snippet
7z a <<compressed_file_name>>.7z path/to/secret/file(s) -p<<password string>>
<context:property-placeholder
location="app-default.properties,
app/app-configmap.properties,
secret/app-secret.conf"
ignore-resource-not-found="true"/>
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
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