Giter Club home page Giter Club logo

kind-terraform-yaks's Introduction

Lab with Kind, Terraform and YAKS

This is a lab experiment that creates a Kind Kubernetes cluster, installs a YAKS Operator using Terraform and run a sample test.

Tools

  • Terraform v. 1.4.5
  • Kubectl v. 1.27.1
  • Yaks v. 0.16.0
  • Git v. 2.34.1

Step by step

  1. Install all tools
  2. Using an IDE such as VS Code or even any terminal, clone locally this repository with Git
  3. Run terraform apply -auto-approve will create all resources (this may take ~ 5 min)
  4. Run a test with command yaks run apps/yaks/helloworld.feature
  5. Show tests results with kubectl get tests

Terraform Docs

Below is the documentation of Terraform code produced to this lab.

Requirements

Name Version
kind 0.0.13
kubectl 1.14.0
time 0.9.1

Providers

Name Version
http 3.2.1
kind 0.0.13
kubectl 1.14.0
time 0.9.1

Modules

No modules.

Resources

Name Type
kind_cluster.lab_k8s_cluster resource
kubectl_manifest.olm_crds_manifests resource
kubectl_manifest.olm_olm_manifests resource
kubectl_manifest.yaks_instance resource
kubectl_manifest.yaks_operator_subscription resource
time_sleep.wait_operator_to_be_created resource
http_http.olm_yamls data source
kubectl_file_documents.manifests data source

Inputs

Name Description Type Default Required
apps Information to configure applications in K8s Cluster map
{
"olm": {
"yamls": {
"crds": "https://raw.githubusercontent.com/operator-framework/operator-lifecycle-manager/master/deploy/upstream/quickstart/crds.yaml",
"olm": "https://raw.githubusercontent.com/operator-framework/operator-lifecycle-manager/master/deploy/upstream/quickstart/olm.yaml"
}
},
"yaks": {
"instance": {
"name": "yaks",
"namespace": "operators",
"operator": {
"global": false,
"namespace": "operators"
},
"yaml_path": "apps/yaks/instance.yaml"
},
"subscription": {
"channel": "alpha",
"name": "yaks-poc",
"namespace": "operators",
"operator": {
"name": "yaks",
"source": {
"name": "operatorhubio-catalog",
"namespace": "olm"
}
},
"time_to_wait": "90s",
"yaml_path": "apps/yaks/subscription.yaml"
}
}
}
no
cluster Information to configure the K8s Cluster map
{
"api_version": "kind.x-k8s.io/v1alpha4",
"name": "kind-lab-k8s-cluster",
"node_image": "kindest/node:v1.24.0"
}
no
kubernetes_resources Type of resources created in cluster that will be labeled map
{
"instance": {
"api_version": "yaks.citrusframework.org/v1alpha1",
"kind": "Instance"
},
"subscription": {
"api_version": "operators.coreos.com/v1alpha1",
"kind": "Subscription"
}
}
no
terraform_managed_by_label Content of label to be put throughout all resources created in cluster map
{
"app.kubernetes.io/managed-by": "terraform"
}
no

Outputs

Name Description
yaks_info Information about the YAKS instance created on K8S cluster

kind-terraform-yaks's People

Contributors

axcosta avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.