Basic Notes on Containerization
Few Tips : Whenever config-map is updated, you need to manually restart the services to update the changes Ephemeral Volumes exist for the lifespan of a Pod. Persistent Volumes preserve data beyond the lifespan of a Pod. Volume Types emptyDir - Empty directory in Pod with read/write access. Only persisted for the lifespan of a Pod. A good choice for cache implementations or data exchange between containers of a Pod. hostPath: File or directory from the host node’s filesystem. Supported only on single-node clusters and not meant for production. configMap , Secrets: Provides a way to inject configuration data. nfs: An existing NFS (Network File System) share. Preserves data after Pod restart. persistentVolumeClaim : Claims a Persistent Volume. Create a multi-container (easy way ) ...