Quick start - Linux
Requirements
latest kubectl command-line tool: installation instructions
latest helm command-line tool: installation instructions
latest aws-cli command-line tool. Make sure to install v2 of the aws-cli and not v1: installation instructions
An aws account you control: creation instructions
Run notops
Download the notops CLI
Download the notops CLI from notops-artifacts.s3.us-east-2.amazonaws.com/notops-latest and rename it to notops
. Or use the following command:
Create an AWS IAM user
We are using an IAM user instead of other options since this is a quick start guide
Once you have an AWS account ready to go, you'd need an AWS IAM user with enough permissions to run notops. These permissions allow notops to create and manage the infrastructure for you.
Policy
You can skip this step and use the built-in AdministratorAccess
policy instead. See IAM policy for the CLI for more details.
User
Follow these instructions to create a new IAM user named notops-runner
. When creating the user, keep the following in mind:
Enter
notops-runner
as the user nameDisable console access for this user by keeping the checkbox for
Provide user access to the AWS Management Console - optional
unchecked.Click
Next
. Select the option toAttach policies directly
Attach the policy you created in the previous step, or the built-in
AdministratorAccess
policy.Click
Next
Click
Create user
Access Keys
Once the user has been created,
Go to the IAM console
Select
Users
from the navigation bar on the leftClick on the
notops-runner
userGo to the
Security credentials
tabScroll down and under the
Under Access keys
, chooseCreate access key
On the
Access key best practices & alternatives
page, pickApplication running outside AWS
and clickNext
Optionally set a description and then click
Create access key
On the
Retrieve access keys
page, copy both theAccess key
and theSecret access key
(or click on theDownload .csv file
). This is your only opportunity to save your secret access key. If you don't save the secret key now, you cannot retrieve it again. Keep the secret key in a safe place.
We'll use the access key and the secret access key during the subsequent steps.
Create a config file
Create a local file named notops-config.yaml
with the following contents. Replace demo.notops.io
with a test-domain you want to access publicly over HTTPS
.
To understand all the configuration options, please check Configuration.
Set up a terminal for the CLI
Open your favorite terminal, and set the following env-vars
Run notops
In the existing terminal where you specified your AWS credentials, run the following command:
This will take some time, so grab a coffee and scroll the internets for about 20 to 30 minutes.
Next Steps
Once the CLI finishes running, you'd have a whole environment ready to go. Here are the follow up steps you'd take:
Set up the DNS nameservers for your domain
Without this step, you won't be able to access the services in your cluster using the DNS hostname of your domain
Unless you specified otherwise, notops would manage the DNS for your domain using a public Route53 Zone. You'd need to set up the nameserveres for this zone. Follow these instructions: Configure Domain Nameservers.
Verify the SSL cert
If you used the sample config provided above, you can skip this step. Otherwise, please follow Verify SSL Certificate to make sure your SSL cert has been verified.
Use the kubernetes cluster
You'd need to install kubectl command-line tool.
The following command will set up your kubeconfig file. Replace <cluster-name>
below with the value of the environmentName
config, and <region>
with the value of aws.region
from the config file.
Now, you're ready to start deploying on Kubernetes. Run the following command to see all the pods running in the kube-system
namespace.
You can use the cluster anyway you like.
Deploy a demo application
Last updated