Install Go
brew install golang
Set the golang
binary directory
export GOPATH="$HOME/go"
# Deploy the TEST app to the demo namespace | |
# REF: https://bit.ly/3EKx0cT | |
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: demo | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment |
# REF HCP: https://developer.hashicorp.com/vault/docs/platform/k8s/helm/configuration | |
# REF VAL: https://github.com/hashicorp/vault-helm/blob/main/values.yaml | |
# REF PLT: https://repo1.dso.mil/big-bang/product/packages/vault/-/blob/main/chart/values.yaml | |
# --------------------------------------------------------------------------------------------------------- | |
global: | |
enabled: true | |
namespace: "vault" | |
tlsDisable: true # Default: true | |
imagePullSecrets: | |
- name: private-registry |
# Deploy webapp to test the demo namespace | |
# REF: https://bit.ly/3EKx0cT | |
--- | |
apiVersion: v1 | |
kind: Namespace | |
metadata: | |
name: demo | |
--- | |
apiVersion: apps/v1 | |
kind: Deployment |
######################################################################################################################## | |
# EKS Addons | |
# VER: https://github.com/aws-ia/terraform-aws-eks-blueprints-addons/releases | |
# TFR: https://github.com/aws-ia/terraform-aws-eks-blueprints-addons#usage | |
# GHR: https://github.com/aws-ia/terraform-aws-eks-blueprints-addons/blob/99520ae0125df7b24163e14cf4eba2c96fcf14bd/docs/amazon-eks-addons.md#configuration-values | |
######################################################################################################################## | |
module "eks_blueprints_addons" { | |
source = "aws-ia/eks-blueprints-addons/aws" | |
version = "~> 1.16.3" |
###---------------------------------------------------------------------------- | |
### MAIN PROGRAM | |
###---------------------------------------------------------------------------- | |
### PREP | |
###--- | |
###--- | |
### The kube-prometheus stack includes a resource metrics API server, so the | |
### metrics-server addon is unnecessary. |
/* | |
AuthN Configuration for EKS | |
This config solves the issue of pre-configuring cluster credentials before the cluster is built. | |
*/ | |
### Discover the Cluster Token for AuthN | |
data "aws_eks_cluster_auth" "cluster_auth" { | |
name = module.eks.cluster_name | |
} |
apiVersion: apps/v1beta1 | |
kind: Deployment | |
metadata: | |
labels: | |
name: 12F-app | |
name: 12F-app | |
namespace: 12F-app-ns | |
spec: | |
replicas: 3 | |
template: |