Kaniko is an open-source tool that provides a secure way to build container image without requiring a Docker daemon. This module utilizes the power of Kaniko to build container image using a Dockerfile fetched from GitHub, as well as the deployment of it to a Kubernetes cluster.
This module will also generate to image name to output.
Name | Version |
---|---|
kaniko | 0.0.1-dev1 |
Name | Version |
---|---|
kaniko | 0.0.1-dev1 |
No modules.
Name | Type |
---|---|
kaniko_image.image | resource |
Name | Description | Type | Default | Required |
---|---|---|---|---|
dockerfile | Path to the Dockerfile. | string |
"Dockerfile" |
no |
git_auth | @label "Authentication" @group "Source" | bool |
false |
no |
git_branch | Branch of the repository to clone. | string |
"main" |
no |
git_password | Password for cloning the git repository. | string |
null |
no |
git_path | Path to the source code. | string |
null |
no |
git_url | URL to the source code repository. | string |
n/a | yes |
git_username | Username for cloning the git repository. | string |
null |
no |
image | Name of the image to be built and deployed. | string |
n/a | yes |
registry_auth | @label "Registry Authentication" @group "Build" | bool |
false |
no |
registry_password | Password for the image registry. | string |
null |
no |
registry_username | Username for the image registry. | string |
null |
no |
Name | Description |
---|---|
image | Built docker image name |
Name | Version |
---|---|
kaniko | 0.0.1-dev1 |
Name | Version |
---|---|
kaniko | 0.0.1-dev1 |
kubernetes | n/a |
Name | Source | Version |
---|---|---|
deployment | terraform-iaac/deployment/kubernetes | 1.4.2 |
service | terraform-iaac/service/kubernetes | 1.0.4 |
Name | Type |
---|---|
kaniko_image.image | resource |
kubernetes_service.service | data source |
Name | Description | Type | Default | Required |
---|---|---|---|---|
dockerfile | Path to the Dockerfile. | string |
"Dockerfile" |
no |
env | Name and value pairs to set as the environment variables | map(string) |
{} |
no |
git_auth | @label "Git Authentication" @group "Build" | bool |
false |
no |
git_branch | Branch of the repository to clone. | string |
"main" |
no |
git_password | Password for cloning the git repository. | string |
null |
no |
git_path | Path to the source code. | string |
null |
no |
git_url | URL to the source code repository. | string |
n/a | yes |
git_username | Username for cloning the git repository. | string |
null |
no |
image | Name of the image to be built and deployed. | string |
n/a | yes |
limit_cpu | CPU limit. e.g. 0.5, 1, 2 | string |
"" |
no |
limit_memory | Memory limit. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi | string |
"" |
no |
name | Name of the deployment resource. Auto-generated if empty. | string |
"" |
no |
namespace | Namespace to deploy. Auto-generated if empty. | string |
"" |
no |
ports | Service ports to expose | list(number) |
[ |
no |
registry_auth | @label "Registry Authentication" @group "Build" | bool |
false |
no |
registry_password | Password for the image registry. | string |
null |
no |
registry_username | Username for the image registry. | string |
null |
no |
replicas | Count of pods | number |
1 |
no |
request_cpu | CPU request. e.g. 0.5, 1, 2 | string |
"0.1" |
no |
request_memory | Memory request. e.g. 128Mi, 512Mi, 1Gi, 2Gi, 4Gi | string |
"128Mi" |
no |
seal_metadata_namespace_name | Seal metadata namespace name. | string |
"" |
no |
seal_metadata_service_name | Seal metadata service name. | string |
"" |
no |
Name | Description |
---|---|
image | Build and deploy docker image name |
ports | Service Ports |
service_ip | Service IP |