v0.1.0
do/k8s
- Output database cluster port, it is the custom one, not
5432
.
Example:
module "digitalocean" {
source = "[email protected]:datarockets/infrastructure//do/k8s?ref=v0.1.0"
# ...
}
module "kubernetes" {
source = "[email protected]:datarockets/infrastructure//k8s/basic?ref=v0.1.0"
# ...
secrets = {
database = {
# ...
DB_PORT = module.digitalocean.db_port
}
}
}
k8s/basic
- FIX 3d5acfc
Kubernetes cluster now is able to pull images from private registries, such as created by do/k8s module. - BREAKING 33a1050
Add ability to deploy multiple apps to cluster:project
attribute is renamed toapp
and we add it as label to namespace, deployments, pods, services, and ingresses. E.g. you can select all the pods by label now:kubectl get pods -l app=app_name
. - BREAKING ff55503
init_command
is renamed toinit_container
. We no longer set the same environment variables for init containers. Now we need to list them separately. It could be helpful for setting different value for a number of database connections in pool, since digitalocean database cluster limit the number of connections to 22 by default. Also, we can customize the image of init container if it differs from the main one. - 7584dd2
It's possible to specify custom labels for deployments, pods, and services. - d3d75ca
We can specify custom service account assigned to pods, so you can bind a role to this service account making it possible for code in pod make queries to kubernetes API.