Code Monkey home page Code Monkey logo

terraform-kubernetes-dashboard's Introduction

Kubernetes Dashboard Terraform module

Terraform module which deploy's the Kubernetes dashboard to an existing cluster.

The following Kubernetes resources are created for this deployment:

Secret
Service Account
Role
Role Binding
Deployment
Service

ISSUES

Currently due to a provider issue a manual step is required after the deployment for the dashboard to work.

Cause

The cause of the issue is the provider is unable to change the value of automountServiceAccountToken in the Pod, ReplicaSet or Deployment resources. The PR has been raised and is currently being reviewed for merging. Follow Here.

Work Around

To work around this issue once the terraform is applied successfully you need to edit the deployment and change the value of automountServiceAccountToken to true.

kubectl edit deployment -n kube-system kubernetes-dashboard

Change the key value to true then save and exit the file.

apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  ...
spec:
  ...
  template:
    metadata:
      ...
    spec:
      automountServiceAccountToken: true
      ...

Terraform Version

Terraform version 0.11.7 or newer is required for this module to work.

Examples

Inputs

Name Description Type Default Required
app_name Application name to be labelled on all resources string kubernetes-dashboard no
app_port Dashboard container port string 443 no
cpu_type CPU type for the dashboard. Used to build image url https://github.com/kubernetes/dashboard/releases string amd64 no
dashboard_version Dashboard version. Used to build image url https://github.com/kubernetes/dashboard/releases string v1.10.0 no
initial_delay_seconds Number of seconds after the container has started before liveness probes are initiated string 30 no
namespace Kubernetes namespace for resources to be deployed string kube-system no
replicas Amount of pods to be deployed string 1 no
revision_history_limit The number of old ReplicaSets to retain to allow rollback string 10 no
service_type Determines how the service is exposed string ClusterIP no
target_port Dashboard target port for service exposure string 8443 no
timeout_seconds Number of seconds after which the liveness probe times out string 30 no

Outputs

Currently no outputs of this module.

Authors

Module is maintained by Ben Prudence.

License

Apache 2 Licensed. See LICENSE for full details.

terraform-kubernetes-dashboard's People

Contributors

marvelorange 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.