-
This repo contains files used to deploy a function using Openfaas, to a kubernetes cluster on amazon eks created using eksctl.
-
Function is created with the use of a docker containers by Openfaas and runs as a pod in the cluster.
-
In the ekscfg.yaml file I assigned iam policies to the nodes which would be inherited by the pods running in the granting the function access to upload images into S3.
Tools required for this project include;
-
Jenkins_node folder contains terraform files to deploy the jenkins server in aws which is used to implement CI/CD as it automates the Build, Push and Deploy of the function into the kubernetes cluster.
-
Made use of the cloudbees aws plugin to pass aws credentials to the jenkins server, also used secrets to pass the openfaas gateway (gw) to the server and docker credentials.