#kubernetes - May 2019

nutellinoit
nutellinoitover 7 years ago
@Mark Grube we use Rancher for users permission management in front of EKS
Dan
Danover 7 years ago
Has anyone made their GKE nodes static with Terraform?
johncblandii
johncblandiiover 7 years ago
I think I’m missing a step with this new eks cluster. applying the configmap keeps giving me an unauthorized.

The aws-iam-authenticator call is working as expected so I have access, but applying the file does not work
Jeremy G (Cloud Posse)
Jeremy G (Cloud Posse)over 7 years ago
I have a cluster in AWS in 3 availability zones, with 3 masters, but only 2 nodes. kops put both nodes in the same AZ? Is this a bug? How do I get kops to spread the nodes evenly across AZs?
wbrown43
wbrown43over 7 years ago
@wbrown43 has joined the channel
johncblandii
johncblandiiover 7 years ago
Is there a clean way to get the security group created for an LB so I can assign it to the workers SG to approve traffic?
Ryan Smith
Ryan Smithover 7 years ago
Dang, how do we get Curtis Mattoon into cloud posse slack? https://github.com/cmattoon/aws-ssm/pull/29
Ryan Smith
Ryan Smithover 7 years ago
This tool works pretty good. But just curious if you peeps have any other methods for dynamically added k8s secrets from SSM
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
not from SSM
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
have you seen @mumoshu’s ASM operator?
Ryan Smith
Ryan Smithover 7 years ago
nope, I shall take a look-see
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
i think extending that to support SSM would be nice
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
or creating a separte one
Ryan Smith
Ryan Smithover 7 years ago
https://github.com/mumoshu/aws-secret-operator (for the others in the channel)
Ryan Smith
Ryan Smithover 7 years ago
Why not use AWS SSM Parameter Store as a primary source of secrets?

Pros:

Parameter Store has an efficient API to batch get multiple secrets sharing a same prefix.

Cons:

Its API rate limit is way too low. This has been discussed in several places in the Internet:
Ryan Smith
Ryan Smithover 7 years ago
However, they just updated the rate limit to 1k req/s
Ryan Smith
Ryan Smithover 7 years ago
so it might be a non-issue now
Ryan Smith
Ryan Smithover 7 years ago
Also, you can set the limit and incur costs. Haven't actually clicked this before.. lets see what happens
Ryan Smith
Ryan Smithover 7 years ago
🤷‍♂️
Ryan Smith
Ryan Smithover 7 years ago(edited)
Ohhh, this is how to you get 1k: https://docs.aws.amazon.com/systems-manager/latest/userguide/parameter-store-throughput.html
You can increase the limit to 1,000 TPS on the Settings tab. Increasing the throughput limit incurs a charge on your AWS account.
Ryan Smith
Ryan Smithover 7 years ago
$0.05 per 10,000 Parameter Store API interactions k.. I'll stop spamming
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
that's great; didn't know they increased the limit
mumoshu
mumoshuover 7 years ago(edited)
I thought secretsmanager had the same amount of charge 🤔
Ryan Smith
Ryan Smithover 7 years ago
secretmanager i think is $1/mo/secret. Lemme google a littttle
Ryan Smith
Ryan Smithover 7 years ago
whoops.. $0.40/mo
Ryan Smith
Ryan Smithover 7 years ago
PER SECRET PER MONTH
$0.40 per secret per month. For secrets that are stored for less than a month, the price is prorated (based on the number of hours.)

PER 10,000 API CALLS
$0.05 per 10,000 API calls.
Ryan Smith
Ryan Smithover 7 years ago
🙌
loren
lorenover 7 years ago
Also good to cache your secrets, to avoid extra API calls and rate limits... https://aws.amazon.com/about-aws/whats-new/2019/05/Secrets-Manager-Client-Side-Caching-Libraries-in-Python-NET-Go/
Ryan Smith
Ryan Smithover 7 years ago
https://github.com/cmattoon/aws-ssm/pull/30 fixing a bug in aws-ssm if anyone else was considering to use it
Exequiel Barrirero
Exequiel Barrireroover 7 years ago
Exequiel Barrirero
Exequiel Barrireroover 7 years ago(edited)
Interesting approach for -> Deploying API Gateway in front of EKS / K8s Kops Clusters inside VPC private subnets 🤝
And many other useful info about Integrating EKS with other AWS Services 🙂
davidvasandani
davidvasandaniover 7 years ago
Vidhi Virmani
Vidhi Virmaniover 7 years ago(edited)
I am trying to setup kubernetes dashboard on AWS EKS cluster. I am able to setup the dashboard but facing a small issue with certs. I want to use aws certificate arn with the dashoard as an argument with command
kubectl apply -f <https://raw.githubusercontent.com/kubernetes/dashboard/v1.10.1/src/deploy/recommended/kubernetes-dashboard.yaml>
is this possible?
nutellinoit
nutellinoitover 7 years ago
To anyone that is tempted to use t3a or m5a instances on an EKS cluster, don’t
nutellinoit
nutellinoitover 7 years ago
there is an incompatibility on calculating number of eni available
timduhenchanter
timduhenchanterover 7 years ago(edited)
Sandeep Kumar
Sandeep Kumarover 7 years ago
How do we generate a wildcard certificate using kubernetes kind:managedCertificate, trying with below method but not successful
apiVersion: networking.gke.io/v1beta1
kind: ManagedCertificate
metadata:
name: example-certificate
spec:
domains:
- *.example.net

Please let me know if there is any documentation/suggestions to create a wild card certificate with expiry date mentioned in it
sarkis
sarkisover 7 years ago
^ Polaris looks really interesting... I'm going to try to get it going this weekend see if it's useful... any thoughts on it yet if someones already set it up?
sarkis
sarkisover 7 years ago
Couldn't wait for the weekend testing it now... it offers some nice checks... I can see this becoming more and more useful as more checks/best practices are added ...
James D. Bohrman
James D. Bohrmanover 7 years ago
Hey all! I'm having an issue building my example-voting-app with Codefresh.

I added the variable for KUBE_CONTEXT but I keep getting an error that throws:



error: no context exists with the name: "gke_example-voting-app-240610_us-east1-c_example-votin
g-app".                                                                                        
[SYSTEM] Error: Failed to run freestyle step: Running Helm Upgrade; caused by NonZeroExitCodeEr
ror: Container for step title: Running Helm Upgrade, step type: freestyle, operation: Freestyle
James D. Bohrman
James D. Bohrmanover 7 years ago
I ran kubectl get context in my GKE shell and got:

gke_example-voting-app-240610_us-east1-c_example-voting-app
James D. Bohrman
James D. Bohrmanover 7 years ago
I put that as my KUBE_CONTEXT variable and can't figure what I'm doing wrong.
The docs say to put KUBE_CONTEXT as "Your friendly Kubernetes Cluster Name"
I've also tried "example-voting-app" as the context variable. Which is the EKS cluster name. No dice there either.
aaratn
aaratnover 7 years ago(edited)
Can anyone help me with aws alb loadbalancer with helm chart ? Any samples that I can refer ?
sarkis
sarkisover 7 years ago
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
Public/Free Office Hours with Cloud Posse starting now!!

https://zoom.us/j/684901853
btai
btaiover 7 years ago
anyone try federation yet?
Kevin Gimbel
Kevin Gimbelover 7 years ago
Hey all, I've a question and I can't seem to find an answer. I'm running an AWS EKS cluster with two Nodes, each Node in EKS has a restriction of 20 Pods per Node. The Nodes are auto scaled and shut down each night and started in the morning since it's just a test / staging system at the moment. However, one Node is always full (20/20 Capacity) while the other runs 4/20. We want to run a DaemonSet with filebeat for log aggregation but cannot ensure it runs on both nodes because one is full.

Is there a way I can (easily) ensure the DaemonSet is scheduled before all other pods? Or can I reserve a spot / space on a Node for a specific Pod, Deployment, or DaemonSet?
Vidhi Virmani
Vidhi Virmaniover 7 years ago
Hi all,

Is there anyone who has setup kubernetes dashboard on EKS using istio ingress gateway?
I am facing some issues where my dashboard crash after 4 mins. I am not sure if its a good idea to use istio ingress gateway to run kubernetes-dashboard. Any help is appreciated
Vidhi Virmani
Vidhi Virmaniover 7 years ago
It is fixed now. I had to provide few configs in istio
Erik Osterman (Cloud Posse)
Erik Osterman (Cloud Posse)over 7 years ago
@Vidhi Virmani how are you securing it?
Issif
Issifover 7 years ago