Skip to content

Files

Latest commit

a04fcf4 · Apr 17, 2023

History

History
This branch is 8 commits ahead of, 44 commits behind seal-io/modules:main.

0.0.1

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Apr 17, 2023
Apr 17, 2023
Apr 17, 2023
Apr 17, 2023

README.md

Web Service Module

This module provides an efficient way to create a Kubernetes deployment and service for a web service.

It will generate an access endpoint as output for your web service, allowing it to be accessed from other services or applications.

Requirements

Name Version
kubectl 1.14.0

Providers

Name Version
kubectl 1.14.0
kubernetes n/a

Modules

Name Source Version
deployment terraform-iaac/deployment/kubernetes 1.4.2
service terraform-iaac/service/kubernetes 1.0.4

Resources

Name Type
kubectl_manifest.ns resource
kubernetes_service.service data source

Inputs

Name Description Type Default Required
add_capabilities Add capabilities. list(string) [] no
args Arguments to the entrypoint list(string) [] no
command Entrypoint array list(string) [] no
command_readiness_check_failure_threshold Readiness check failure threshold. number 3 no
command_readiness_check_initial_delay Readiness check initial delay. number 0 no
command_readiness_check_interval Readiness check interval. number 10 no
command_readiness_check_path Command to run. string "" no
command_readiness_check_success_threshold Readiness check success threshold. number 1 no
drop_capabilities Drop capabilities. list(string) [] no
env Name and value pairs to set as the environment variables map(string) {} no
image Docker image name string n/a yes
image_pull_policy Image pull policy string "IfNotPresent" no
image_pull_secrets Image pull secrets list(string) [] no
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
liveness_type Liveness check type. string "None" no
name Deployment name. string n/a yes
namespace Namespace to deploy. string n/a yes
node_selector Node selector. map(string) null no
ports Service ports to expose list(number)
[
80
]
no
privilege_escalation Container can gain more privileges than its parent process. bool true no
privileged Run in privileged mode. bool false no
read_only_root_filesystem Container has a read-only root filesystem. bool true no
readiness_check_failure_threshold Readiness check failure threshold. number 3 no
readiness_check_initial_delay Readiness check initial delay. number 0 no
readiness_check_interval Readiness check interval. number 10 no
readiness_check_path Readiness check request path. string "" no
readiness_check_port Readiness check port. number null no
readiness_check_success_threshold Readiness check success threshold. number 1 no
readiness_type Readiness check type. string "None" no
replicase Replicas. number n/a yes
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
run_as_non_root Run as a non-root user. bool false no
run_as_user_id Run as user ID. number null no
seal_metadata_application_instance_name Seal metadata application instance name. string "" no
seal_metadata_application_name Seal metadata application name. string "" no
seal_metadata_module_name Seal metadata module name. string "" no
seal_metadata_project_name Seal metadata project name. string "" no
startup_type Startup check type. string "None" no

Outputs

Name Description
ports Service Ports
service_ip Service IP