Skip to content

Terraform modules for GKE and kustomize manifests for go-hello-world-app app

License

Notifications You must be signed in to change notification settings

linuxpolska/k8s-infra-and-objects

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Repo with manifest and terraform

Terraform

Repository with terraform code.

Structure

.
├── DEV
│   ├── backend.tf
│   ├── main.tf
│   └── variables.tf
├── Module
│   └── GKE
│       ├── main.tf
│       └── variables.tf
└── PROD
    ├── backend.tf
    ├── main.tf
    └── variables.tf

Usage

Repository use terrafroms backend files, so Cloud Storage is require.

cd DEV # or PROD

terraform init
terraform apply \
-var="path=<path-to-credentional-file>" \
-var="project=<project-name>"

Kustomize

Related with LinuxPolska Blog Post.

Structure

.
├── base
│   ├── deployment.yaml
│   ├── kustomization.yaml
│   ├── namespace.yaml
│   └── service.yaml
├── dev
│   └── kustomization.yaml
└── prod
    ├── increase_replicas.yaml
    └── kustomization.yaml

Usage

After authentication to kubernetes cluster use

kubectl kustomize dev | k apply -f -
# or    
kubectl kustomize prod | k apply -f -

Dry-run

In case of dry run type

kubectl kustomize dev 
# or
kubectl kustomize prod

About

Terraform modules for GKE and kustomize manifests for go-hello-world-app app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages