K3S Libvirt Terraform Module

The k3s/libvirt Terraform module provides a way to install and configure:

  • A K3s cluster based using Libvirt

  • The ArgoCD Helm module

Requirements

Name Version

>= 0.13

2.0.2

2.0.2

0.6.2

2.0.0

3.0.0

3.0.0

tls

3.0.0

Providers

Name Version

3.0.0

tls

3.0.0

Modules

Name Source Version

camptocamp/k3s/libvirt

Inputs

Name Description Type Default Required

Agent RAM

number

2048

no

App of apps values overrides.

string

""

no

ArgoCD Server Secert Key to avoid regenerate token on redeploy.

string

null

no

The name of the Kubernetes cluster to create.

string

n/a

yes

Whether to enable minio object storage system

bool

true

no

Extra applications to deploy.

list(any)

[]

no

The admin password for Grafana.

string

null

no

The K3os version to use

string

"v0.20.4-k3s1r0"

no

Number of nodes to deploy

number

2

no

OIDC configuration for core applications.

object({
    issuer_url              = string
    oauth_url               = string
    token_url               = string
    api_url                 = string
    client_id               = string
    client_secret           = string
    oauth2_proxy_extra_args = list(string)
  })

null

no

The source repo URL of ArgoCD’s app of apps.

string

"https://github.com/camptocamp/devops-stack.git"

no

Server RAM

number

2048

no

The source target revision of ArgoCD’s app of apps.

string

"master"

no

Outputs

Name Description

n/a

n/a

The token to set in ARGOCD_AUTH_TOKEN environment variable.

The URL of the ArgoCD server.

n/a

The admin password for Grafana.

The content of the KUBECONFIG file.

n/a

n/a