Skip to content

Commit

Permalink
Feature/fix data island (#87)
Browse files Browse the repository at this point in the history
* add k8s service account

* update changelog

* update changelog

Co-authored-by: Raj Poluri <[email protected]>
  • Loading branch information
rpoluri and Raj Poluri authored Sep 21, 2021
1 parent 736ad75 commit 24a4d3d
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [3.3.5] - 2021-09-21
### Change
- Fixes to deploy on k8s clusters requiring serviceaccount for all deployments.

## [3.3.4] - 2021-08-13
### Change
- Enable health check in k8s deployment.
Expand Down
10 changes: 10 additions & 0 deletions k8s.tf
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,15 @@ locals {
actuator_port = 18000
wd_port = 48869
}

resource "kubernetes_service_account" "waggle_dance" {
metadata {
name = local.instance_alias
namespace = var.k8s_namespace
}
automount_service_account_token = true
}

resource "kubernetes_deployment" "waggle_dance" {
count = var.wd_instance_type == "k8s" ? 1 : 0
metadata {
Expand Down Expand Up @@ -41,6 +50,7 @@ resource "kubernetes_deployment" "waggle_dance" {
}

spec {
service_account_name = kubernetes_service_account.waggle_dance.metadata.0.name
container {
image = "${var.docker_image}:${var.docker_version}"
name = local.instance_alias
Expand Down

0 comments on commit 24a4d3d

Please sign in to comment.