stok

command module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

README

stok

supercharge terraform on kubernetes

install

Create kubernetes secret containing google credentials. These are for the google provider (only the google provider is currently supported). You'll need to have downloaded a key for a service account with sufficient permissions.

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

Deploy the helm chart to your cluster:

helm repo add goalspike https://goalspike-charts.storage.googleapis.com
helm install stok goalspike/stok

Download and install the CLI from releases.

usage

Usage is similar to the terraform CLI:

Supercharge terraform on kubernetes

Usage:
  stok [command]

Available Commands:
  apply        Run terraform apply
  debug        Show configuration options
  destroy      Run terraform destroy
  force-unlock Run terraform force-unlock
  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 interactive shell on workspace pod
  show         Run terraform show
  state        Run terraform state
  taint        Run terraform taint
  untaint      Run terraform untaint
  validate     Run terraform validate
  version      Run terraform version

Flags:
      --config string      config file (default is $HOME/.stok.yaml)
  -h, --help               help for stok
      --namespace string   kubernetes namespace (default "default")
      --workspace string   terraform workspace (default "default")

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
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 terraform contains terraform API versions.
Package terraform contains terraform API versions.
apis/stok/v1alpha1
Package v1alpha1 contains API Schema definitions for the terraform v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=stok.goalspike.com Package v1alpha1 contains API Schema definitions for the terraform v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=stok.goalspike.com
Package v1alpha1 contains API Schema definitions for the terraform v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=stok.goalspike.com Package v1alpha1 contains API Schema definitions for the terraform v1alpha1 API group +k8s:deepcopy-gen=package,register +groupName=stok.goalspike.com
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