Skip to content

bcgov/terraform-deployer-openshift

Repository files navigation

terraform-openshift-deployer

Lifecycle:Stable

Terraform module which creates a service account to deploy applications on Openshift cluster.

Usage

terraform {
  required_version = ">= 0.15.3"
}

provider "kubernetes" {
  config_path = "~/.kube/config"
}

module "deployer" {
  source  = "bcgov/openshift/deployer"
  version = "0.10.0"

  name                  = "oc-deployer"
  namespace             = "xxxxxx-prod"
  privileged_namespaces = ["xxxxxx-dev", "xxxxxx-test", "xxxxxx-prod"]
}

output "sc_secret" {
  value = module.deployer.default_secret_name
}