Skip to content

Development based stack for local kubernetes development of the faf infrastructure

Notifications You must be signed in to change notification settings

Sheikah45/tilt-stack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tilt Stack

This repository aims to provide a ready-to-go Tilt setup for ephemeral FAF infrastructure local development on kubernetes.

Structure

The tilt stack uses kubernetes resources in /deploy to define all the faf resources. The service definitions are simplifications of those used in the gitops-stack. A majority of the environment configuration and proxying is removed as the tilt stack is intended to be used for local development only and all services are meant to be accessed directly via localhost. All services should have their oeprational ports exposed via port-forwarding.

Configuration

The tilt stack is designed to require as little configuration as possible. Sane and consistent defaults have been defined for all the services.

Data

The tilt stack is currently intended to be used transiently so there is no local storage. All the data and resources are created and destroyed with their containers.

Usage

Prerequisites

Startup Services

In the root directoy of your repository run tilt up. This will start all the faf services in the correct order. The status of each service can be viewed in the tilt UI by visiting http://localhost:10350. This is the control server for tilt where you can restart services or disable them for substitution by services you would like to run from source code as you actively develop them.

Development

To develop against the FAF infrastructure you should disable the service in tilt that you are actively developing. Once disabled you can start up your developed version. Some tweaks may need to be made to the default configuration parameters in the source code. The proper values can be found in the configMaps in each of the services kubernetes deploy yaml files.

Test Data

The default test data that is loaded can be found in /sql/test-data.sql. This can be overridden by providing a new path with the tilt configuration key test-data-path when running tilt up or in the tilt_config.json file in the repository root directory.

About

Development based stack for local kubernetes development of the faf infrastructure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published