Kubernetes Operations (kops) - Production Grade K8s Installation, Upgrades, and Management
Go HCL Shell Other
Latest commit 2ed09a0 Dec 21, 2017 @k8s-merge-robot k8s-merge-robot Merge pull request #4122 from spiffxp/update-code-of-conduct
Automatic merge from submit-queue.

Update code-of-conduct.md

Refer to kubernetes/community as authoritative source for code of conduct

ref: kubernetes/community#1527
Permalink
Failed to load latest commit information.
.github updates from PR review Nov 16, 2017
_vendor Update aws-sdk-go to v1.10.34 Nov 17, 2017
addons Rename v1.8.1 to v1.8.1.yaml Dec 18, 2017
channels Put stable channel back to jessie for 1.9 / 1.10 Dec 4, 2017
charts/kops Getting API server running in a kubernetes cluster with helm and dock… Mar 28, 2017
cloudmock/aws Merge pull request #4061 from meringu/create-subnets Dec 19, 2017
cmd updating bazel files Dec 20, 2017
dns-controller Update dnsprovider imports to use our version Dec 14, 2017
dnsprovider fixing goimports formatting Dec 18, 2017
docker Bump all our base docker images Nov 28, 2017
docs Merge pull request #4061 from meringu/create-subnets Dec 19, 2017
examples Refactor: separate out SSHCredentials from Keyset stores Dec 14, 2017
federation gazelle updates with new bazel version Nov 6, 2017
hack Avoid ListSecrets call in nodeup Dec 19, 2017
hooks Bump all our base docker images Nov 28, 2017
images Bump all our base docker images Nov 28, 2017
nodeup/pkg Remove use of deprecated create-if-missing functions Dec 20, 2017
permalinks Channel manifest should be version aware Jan 26, 2017
pkg updating bazel files Dec 20, 2017
protokube fixing goimports formatting Dec 18, 2017
tests Merge pull request #4061 from meringu/create-subnets Dec 19, 2017
tools bazel: stamp version into build Oct 3, 2017
upup Merge pull request #4116 from bitfusionio/f1-instance-types Dec 20, 2017
util/pkg Enabling the file assets Dec 17, 2017
vendor applying 4065 this should drop out Dec 14, 2017
.dockerignore Add .dockerignore file to improve build times Jan 4, 2017
.gitignore Add makefile target to check markdown links Nov 2, 2017
.gitmodules moving Sirupsen dependency to sirupsen Nov 5, 2017
.shipbot.yaml removing windows from shipbot Nov 6, 2017
.travis.yml removing tip as we are not passing because of an upstream issue Nov 1, 2017
BUILD.bazel gazelle updates with new bazel version Nov 6, 2017
CHANGELOG.md Documentation updates Jun 30, 2017
CONTRIBUTING.md Updates per the repo Dec 20, 2016
LICENSE Unmangle the Apache library Jan 19, 2017
Makefile Merge pull request #4016 from zengchen1024/security_group_task Dec 14, 2017
OWNERS Owners Nov 22, 2017
README.md another Kuberenetes fixed Nov 16, 2017
ROADMAP.md Grant kubelets system:node role in 1.8 Oct 23, 2017
WORKSPACE updating to bazel 0.0.7 and adding verify scripts Nov 5, 2017
code-of-conduct.md Update code-of-conduct.md Dec 20, 2017
doc.go Add canonical import paths Nov 4, 2016
labels.yaml Create labels.yaml file to define the 'lgtm' and 'approved' labels. Jul 24, 2017
version.go updating kops version so that we do not get warnings, fixing cf tests Oct 6, 2017

README.md

kops - Kubernetes Operations

Build Status Go Report Card GoDoc Widget

The easiest way to get a production grade Kubernetes cluster up and running.

What is kops?

We like to think of it as kubectl for clusters.

kops helps you create, destroy, upgrade and maintain production-grade, highly available, Kubernetes clusters from the command line. AWS (Amazon Web Services) is currently officially supported, with GCE in beta support , and VMware vSphere in alpha, and other platforms planned.

Can I see it in action?

Launching a Kubernetes cluster hosted on AWS or GCE

To replicate the above demo, check out our tutorial for launching a Kubernetes cluster hosted on AWS.

To install a Kubernetes cluster on GCE please follow this guide.

Features

  • Automates the provisioning of Kubernetes clusters in AWS and GCE
  • Deploys Highly Available (HA) Kubernetes Masters
  • Built on a state-sync model for dry-runs and automatic idempotency
  • Ability to generate Terraform
  • Supports custom Kubernetes add-ons
  • Command line autocompletion
  • YAML Manifest Based API Configuration
  • Templating and dry-run modes for creating Manifests
  • Choose from eight different CNI Networking providers out-of-the-box
  • Supports upgrading from kube-up
  • Capability to add containers, as hooks, and files to nodes via a cluster manifest

Documentation

Documentation is in the /docs directory, and the index is here.

Kubernetes Release Compatibility

Kubernetes Version Support

kops is intended to be backward compatible. It is always recommended to use the latest version of kops with whatever version of Kubernetes you are using. Always use the latest version of kops.

One exception, in regards to compatibility, kops supports the equivalent Kubernetes minor release number. A minor version is the second digit in the release number. kops version 1.8.0 has a minor version of 8. The numbering follows the semantic versioning specification, MAJOR.MINOR.PATCH.

For example kops, 1.8.0 does not support Kubernetes 1.9.2, but kops 1.9.0 supports Kubernetes 1.9.2 and previous Kubernetes versions. Only when kops minor version matches, the Kubernetes minor version does kops officially support the Kubernetes release. kops does not stop a user from installing mismatching versions of K8s, but Kubernetes releases always require kops to install specific versions of components like docker, that tested against the particular Kubernetes version.

Compatibility Matrix

kops version k8s 1.5.x k8s 1.6.x k8s 1.7.x k8s 1.8.x
1.8.x Y Y Y Y
1.7.x Y Y Y N
1.6.x Y Y N N

Use the latest version of kops for all releases of Kubernetes, with the caveat that higher versions of Kubernetes are not officially supported by kops.

kops Release Schedule

This project does not follow the Kubernetes release schedule. kops aims to provide a reliable installation experience for kubernetes, and typically releases about a month after the corresponding Kubernetes release. This time allows for the Kubernetes project to resolve any issues introduced by the new version and ensures that we can support the latest features. kops will release alpha and beta pre-releases for people that are eager to try the latest Kubernetes release. Please only use pre-GA kops releases in environments that can tolerate the quirks of new releases, and please do report any issues encountered.

Installing

Prerequisite

kubectl is required, see here.

OSX From Homebrew

brew update && brew install kops

The kops binary is also available via our releases.

Linux

curl -LO https://github.com/kubernetes/kops/releases/download/$(curl -s https://api.github.com/repos/kubernetes/kops/releases/latest | grep tag_name | cut -d '"' -f 4)/kops-linux-amd64
chmod +x kops-linux-amd64
sudo mv kops-linux-amd64 /usr/local/bin/kops

Release History

See the releases for more information on changes between releases.

Getting Involved and Contributing

Are you interested in contributing to kops? We, the maintainers and community, would love your suggestions, contributions, and help! We have a quick-start guide on adding a feature. Also, the maintainers can be contacted at any time to learn more about how to get involved.

In the interest of getting more new folks involved with kops, we are starting to tag issues with good-starter-issue. These are typically issues that have smaller scope but are good ways to start to get acquainted with the codebase.

We also encourage ALL active community participants to act as if they are maintainers, even if you don't have "official" write permissions. This is a community effort, we are here to serve the Kubernetes community. If you have an active interest and you want to get involved, you have real power! Don't assume that the only people who can get things done around here are the "maintainers".

We also would love to add more "official" maintainers, so show us what you can do!

What this means:

Issues

  • Help read and triage issues, assist when possible.
  • Point out issues that are duplicates, out of date, etc.
    • Even if you don't have tagging permissions, make a note and tag maintainers (/close,/dupe #127).

Pull Requests

  • Read and review the code. Leave comments, questions, and critiques (/lgtm ).
  • Download, compile, and run the code and make sure the tests pass (make test).
    • Also verify that the new feature seems sane, follows best architectural patterns, and includes tests.

This repository uses the Kubernetes bots. See a full list of the commands here.

Office Hours

Kops maintainers set aside one hour every other week for public office hours. Office hours are hosted on a zoom video chat on Fridays at 5 pm UTC/12 noon ET/9 am US Pacific, on odd week numbered weeks. We strive to get to know and help developers either working on kops or interested in getting to know more about the project.

Open Office Hours Topics

Include but not limited to:

  • Help and guide to those who attend, who are interested in contributing.
  • Discuss the current state of the kops project, including releases.
  • Strategize about how to move kops forward.
  • Collaborate about open and upcoming PRs.
  • Present demos.

This time is focused on developers, although we will never turn a courteous participant away. Please swing by, even if you've never actually installed kops.

We encourage you to reach out beforehand if you plan on attending. You're welcome to join any session, and please feel free to add an item to the agenda where we track notes from office hours.

Office hours are hosted on Zoom video conference, held on Fridays at 5 pm UTC/12 noon ET/9 am US Pacific every other odd numbered week.

You can check your week number using:

date +%V

The maintainers and other community members are generally available on the kubernetes slack in #kops, so come find and chat with us about how kops can be better for you!

GitHub Issues

Bugs

If you think you have found a bug please follow the instructions below.

  • Please spend a small amount of time giving due diligence to the issue tracker. Your issue might be a duplicate.
  • Set -v 10 command line option and save the log output. Please paste this into your issue.
  • Note the version of kops you are running (from kops version), and the command line options you are using.
  • Open a new issue.
  • Remember users might be searching for your issue in the future, so please give it a meaningful title to helps others.
  • Feel free to reach out to the kops community on kubernetes slack.

Features

We also use the issue tracker to track features. If you have an idea for a feature, or think you can help kops become even more awesome follow the steps below.

  • Open a new issue.
  • Remember users might be searching for your issue in the future, so please give it a meaningful title to helps others.
  • Clearly define the use case, using concrete examples. EG: I type this and kops does that.
  • Some of our larger features will require some design. If you would like to include a technical design for your feature please include it in the issue.
  • After the new feature is well understood, and the design agreed upon we can start coding the feature. We would love for you to code it. So please open up a WIP (work in progress) pull request, and happy coding.