Skip to content

s4rd1nh4/automata

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1,130 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Automata

K8s

Monorepo for Starjunk and subsidiaries.

Getting started

Prerequisites

Apply manifests

# the managed-by label is pre-applied, so pruning is safe
bazel run //clusters:objects.apply -- --prune

Creating a new cluster

Create a cluster role for GitHub Actions

Create a service account, bind to a cluster role and store the service account's token as a repository secret.

$ k -n default create serviceaccount automata
$ k create clusterrolebinding automata --clusterrole cluster-admin --serviceaccount=default:automata
$ k get secret $(k get sa automata -ojson | jq -r '.secrets[0].name') -oyaml
# token
$ k get secret $(k get sa automata -ojson | jq -r '.secrets[0].name') -ojson | jq -r '.data.token'| base64 --decode
# ca.crt
$ k get secret $(k get sa automata -ojson | jq -r '.secrets[0].name') -ojson | jq -r '.data["ca.crt"]' | base64 --decode

About

Monorepo for Starjunk and subsidiaries

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • CUE 97.6%
  • Starlark 2.2%
  • Other 0.2%