stok

command module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

README

stok

supercharge terraform on kubernetes

install

Download and install the CLI from releases.

Deploy the CRDs to your cluster:

stok generate crds | kubectl create -f -

Deploy the operator to your cluster:

stok generate operator | kubectl apply -f -

Create a kubernetes secret containing the credentials you need for terraform.

Google:

kubectl create secret generic stok --from-file=google-credentials.json=[path to service account key]

AWS:

kubectl create secret generic stok --from-literal=AWS_ACCESS_KEY_ID="youraccesskeyid"
--from-literal=AWS_SECRET_ACCESS_KEY="yoursecretaccesskey"

usage

Usage is similar to the terraform CLI:

Supercharge terraform on kubernetes

Usage:
  stok [command]

Available Commands:
  apply        Run terraform apply
  destroy      Run terraform destroy
  force-unlock Run terraform force-unlock
  generate     Generate stok kubernetes resources
  get          Run terraform get
  help         Help about any command
  import       Run terraform import
  init         Run terraform init
  output       Run terraform output
  plan         Run terraform plan
  refresh      Run terraform refresh
  shell        Run terraform shell
  show         Run terraform show
  state        Run terraform state
  taint        Run terraform taint
  untaint      Run terraform untaint
  validate     Run terraform validate
  workspace    Stok workspace management

Flags:
      --config string     config file (default is $HOME/.stok.yaml)
  -h, --help              help for stok
      --loglevel string   logging verbosity level (default "info")

Use "stok [command] --help" for more information about a command.

Commands such as terraform fmt or terraform console have been left out because there is no purpose to running them on kubernetes.

Documentation

Overview

Copyright © 2020 Louis Garman <louisgarman@gmail.com>

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Directories

Path Synopsis
cmd
manager command
logging
handlers/cli
[leg100]: copy and pasted from apex pkg: * reduced padding from 3 to 1 * changed debug color from white to magneta (so I can see it on my solarized-light terminal scheme!) Package cli implements a colored text handler suitable for command-line interfaces.
[leg100]: copy and pasted from apex pkg: * reduced padding from 3 to 1 * changed debug color from white to magneta (so I can see it on my solarized-light terminal scheme!) Package cli implements a colored text handler suitable for command-line interfaces.
handlers/prefix
Package prefix implements a colored text handler suitable for command-line interfaces with a configurable prefix
Package prefix implements a colored text handler suitable for command-line interfaces with a configurable prefix
pkg
apis/stok
Package stok contains stok API versions.
Package stok contains stok API versions.
apis/stok/v1alpha1
Code generated by go generate; DO NOT EDIT.
Code generated by go generate; DO NOT EDIT.
client/clientset
This package has the automatically generated clientset.
This package has the automatically generated clientset.
client/clientset/fake
This package has the automatically generated fake clientset.
This package has the automatically generated fake clientset.
client/clientset/scheme
This package contains the scheme of the automatically generated clientset.
This package contains the scheme of the automatically generated clientset.
client/clientset/typed/stok/v1alpha1
This package has the automatically generated typed clients.
This package has the automatically generated typed clients.
client/clientset/typed/stok/v1alpha1/fake
Package fake has the automatically generated clients.
Package fake has the automatically generated clients.

Jump to

Keyboard shortcuts

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