2 min read
If we need to be able to share some data across containers (one generates the data and the other one consumes it) we can use an emptyDir to create a Volume to mount on both containers.
30/06/2021
Read more...2 min read
The configuration file kubeconfig (~/.kube/config) is used to get access to a Kubernetes cluster. It looks like a Kubernetes object that defines the cluster, the user and the context to use:
apiVersion: v1
kind: Config
preferences: {}
clusters:
(...)
users:
(...)
contexts:
(...)
Let's take a minikube kubeconfig as an example
29/06/2021
Read more...2 min read
A ConfigMap an object intended to store configuration for other objects to use. To create a config map we just need to add the data we want to store on the configmap as keys on the data section:
apiVersion: v1
kind: ConfigMap
metadata:
name: demo-configmap
data:
file1.txt: |
this is an example
file2.txt: |
this is another example
28/06/2021
Read more...1 min read
If you want to compare the differences between two branches on git, it's quite straightforward: We just need to tell from which branch to witch one we want to do the diff
25/06/2021
Read more...2 min read
Some times we need to wait some time before using some of the resources to give some time to the previous resources to be ready. For this kind of situations we can use the resource time_sleep combined with depends_on to achieve this functionality on terraform
23/06/2021
Read more...