fargate-migrate

command module
v0.0.0-...-a0d511e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 18, 2021 License: MIT Imports: 13 Imported by: 0

README

fargate-migrate

A tool to migrate a Kubernetes service to run on AWS Fargate.

It inspects the configuration of a Kubernetes Service object, in particular the pods that is backing the service, and generates corresponding Fargate configuration using CDK. A user can then use CDK commands to manage the Fargate deployment.

Usage

You can install it with

$ go get github.com/phsiao/fargate-migrate

The command expects a config file (default is config.yaml in the current directory) as input, and the content of the config file is defined in internal/config/config.go.

Upon successful execution, it outpus a CDK stack in the cdk/ directory of current working directory. The content of the cdk directory is ready for you to run cdk deploy against your account.

A very basic example of config file is:

spec:
  kubernetesConfig:
    context: mycluster
    namespace: mynamespace
    service: myservice
  fargateConfig:
    name: myservice
    accountID: 123456789012
    region: us-east-1
    serviceName: myservice.mydomain.com
    domainName: mydomain.com

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
internal
fargate
fargate only supports specific configuration of cpu and memory so this module provides a function to find minimal matching configuration for the given cpu and memory https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS_Fargate.html
fargate only supports specific configuration of cpu and memory so this module provides a function to find minimal matching configuration for the given cpu and memory https://docs.aws.amazon.com/AmazonECS/latest/developerguide/AWS_Fargate.html

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL