A nice project with a nice description
For development, you will only need Node.js and a node global package, Yarn, installed in your environement.
Create this folder tree on each of your app | |
.platform | |
nginx | |
conf.d | |
client_max_body_size.conf | |
Then in client_max_body_size.conf file add this | |
client_max_body_size 500M; |
{ | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1469200763880", | |
"Action": [ | |
"iam:AttachRolePolicy", | |
"iam:CreateRole" | |
], | |
"Effect": "Allow", |
# Default values for kube-prometheus-stack. | |
# This is a YAML-formatted file. | |
# Declare variables to be passed into your templates. | |
## Provide a name in place of kube-prometheus-stack for `app:` labels | |
## | |
nameOverride: "" | |
## Override the deployment namespace | |
## |
# Default values for kube-prometheus-stack. | |
# This is a YAML-formatted file. | |
# Declare variables to be passed into your templates. | |
## Provide a name in place of kube-prometheus-stack for `app:` labels | |
## | |
nameOverride: "" | |
## Override the deployment namespace | |
## |
FROM jrei/systemd-ubuntu:20.04 | |
ARG NIGHTLY_VERSION=nightly | |
ARG COMPOSABLE_VERSION=v2.2.1 | |
ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt update -y \ | |
&& apt-get install -y software-properties-common \ | |
&& add-apt-repository -y ppa:git-core/ppa \ | |
&& apt-get update -y \ |
FROM node-alpine as builder | |
RUN apt-get update && apt-get install -y zip && apt-get install -y supervisor \ | |
&& apt-get remove --purge gsutil && apt-get install -y sudo && pip install gsutil | |
RUN useradd -ms /bin/bash composable && \ | |
usermod -aG sudo composable | |
# New added for disable sudo password | |
RUN echo '%sudo ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers |
#! /bin/bash | |
apt-get update | |
apt-get install -y nginx | |
service nginx start | |
sed -i -- 's/nginx/Google Cloud Platform - '"$HOSTNAME"'/' /var/www/html/index.nginx-debian.html |
To verify that the controller is installed
kubectl get deployment -n kube-system aws-load-balancer-controller
This is what i used nginx controller please update the nginx controller service controller annotations. Once the manifest is applied next
... | |
resource "aws_eip" "node-eip" { | |
count = "${var.nodes_count}" | |
tags = { | |
Name = "node_${count.index}" | |
Environment = "dev" | |
} | |
} | |