Share
Embed
Transcript
72 slides
-
@hayorov I’m Alex Khaerov $ Development Lead at Chainstack About
Me ∞ blockchains -
@hayorov I’m Alex Khaerov $ Development Lead at Chainstack About
Me ∞ blockchains ∞ cloud providers -
@hayorov I’m Alex Khaerov $ Development Lead at Chainstack About
Me ∞ blockchains ∞ cloud providers -
@hayorov I’m Alex Khaerov $ Development Lead at Chainstack About
Me ∞ blockchains ∞ cloud providers -
@hayorov I’m Alex Khaerov $ Development Lead at Chainstack About
Me ∞ blockchains We ❤ Helm and K8s ∞ cloud providers -
@hayorov Functions of Helm Helm hidden gems Securing Helm Future
of Helm and alternatives Q&A Agenda -
@hayorov “Batteries included” Complexity mngt Packaging Application lifecycle Application metadata
Repositories Package dependancies Helm addresses several needs -
@hayorov “Batteries included” Complexity mngt Packaging Application lifecycle Application metadata
Repositories Package dependancies Helm addresses several needs Parametrization Templating -
@hayorov “Batteries included” Complexity mngt Packaging Application lifecycle Application metadata
Repositories Package dependancies Helm addresses several needs Parametrization Templating Deploy/config revisions Rollbacks Hooks Application probes -
@hayorov “Batteries included” Complexity mngt Packaging Application lifecycle Application metadata
Repositories Package dependancies Helm addresses several needs Parametrization Templating Deploy/config revisions Rollbacks Hooks Application probes Command plugins -
@hayorov My Cluster Open Service Broker API integration What are
Service Brokers? -
@hayorov My Cluster Open Service Broker API integration What are
Service Brokers? -
@hayorov My Cluster Open Service Broker API integration What are
Service Brokers? -
@hayorov My Cluster Cloud Provider Open Service Broker API integration
What are Service Brokers? -
@hayorov My Cluster Cloud Provider Open Service Broker API integration
What are Service Brokers? Managed MySQL -
@hayorov My Cluster Cloud Provider Open Service Broker API integration
What are Service Brokers? Managed MySQL manually -
@hayorov My Cluster Cloud Provider Open Service Broker API integration
What are Service Brokers? Managed MySQL -
@hayorov My Cluster Cloud Provider Open Service Broker API integration
What are Service Brokers? Managed MySQL Service Broker -
@hayorov My Cluster Cloud Provider Open Service Broker API integration
What are Service Brokers? Managed MySQL Service Broker OSBA -
@hayorov My Cluster Cloud Provider Open Service Broker API integration
What are Service Brokers? Managed MySQL Tier: Basic Service Broker OSBA -
@hayorov My Cluster Cloud Provider Open Service Broker API integration
What are Service Brokers? Managed MySQL Tier: Basic Service Broker OSBA DB credentials -
@hayorov My Cluster Cloud Provider Open Service Broker API integration
What are Service Brokers? Managed MySQL Tier: Basic Service Broker OSBA DB credentials -
@hayorov My Cluster Cloud Provider Open Service Broker API integration
What are Service Brokers? Managed MySQL Tier: Basic Service Broker OSBA DB credentials Helm glues Service Broker and charts that consume OSB resources -
@hayorov Repositories on GCS ChartMuseum de-facto is a standard helm-gcs
is a plugin that allows to manage private repos on GCS Authentification using: • application default credentials • service account (via the global flag) -
@hayorov Helm architecture Helm client Chart Repo K8s cluster kube-system
ns microservice ns Kube-api server Tiller-deploy svc Release configmap Microservice pod release ns(s) Release deployment Tiller-deploy pod Service Account Release svc Release configmap fetch Kubeconfig HTTPS gRPC gRPC RestAPI -
@hayorov Helm architecture Helm client Chart Repo K8s cluster kube-system
ns microservice ns Kube-api server Tiller-deploy svc Release configmap Microservice pod release ns(s) Release deployment Tiller-deploy pod Service Account Release svc Release configmap fetch Kubeconfig HTTPS gRPC gRPC RestAPI -
@hayorov • Turn RBAC on • Tiller uses the default
service account in a namespace Kubernetes RBAC • helm init does not create the associated ServiceAccount/Roles/RoleBindings ☝ Tiller-deploy svc Tiller-deploy pod Service Account Release configmap RBAC Default Service Account RestAPI -
@hayorov • Turn RBAC on • Tiller uses the default
service account in a namespace Kubernetes RBAC • helm init does not create the associated ServiceAccount/Roles/RoleBindings ☝ Tiller-deploy svc Tiller-deploy pod Service Account Release configmap RBAC RestAPI -
@hayorov Role RoleBinding • Turn RBAC on • Tiller uses
the default service account in a namespace Kubernetes RBAC • helm init does not create the associated ServiceAccount/Roles/RoleBindings ☝ Tiller-deploy svc Tiller-deploy pod Service Account Release configmap RBAC RestAPI -
@hayorov Kubernetes RBAC Helm client Kubeconfig gRPC K8s cluster kube-system
ns Kube-api server Tiller-deploy svc Release configmap Tiller-deploy pod Service Account Helm client Kubeconfig Cluster Admin X Team Kube-api server Tiller-deploy svc Release configmap Tiller-deploy pod Service Account Release deployment Release svc Release configmap RestAPI RBAC gRPC RestAPI RBAC • No multi-tenancy support • Solution - Multi-Tiller installations • Per developer, per team, per environment X Team ns ? -
@hayorov Kubernetes RBAC Helm client Kubeconfig gRPC K8s cluster kube-system
ns Kube-api server Tiller-deploy svc Release configmap Tiller-deploy pod Service Account Helm client Kubeconfig Cluster Admin X Team Kube-api server Tiller-deploy svc Release configmap Tiller-deploy pod Service Account Release deployment Release svc Release configmap RestAPI RBAC gRPC RestAPI RBAC • No multi-tenancy support • Solution - Multi-Tiller installations • Per developer, per team, per environment X Team ns -
@hayorov • By default Tiller stores releases information in ConfigMaps
Release information Tiller-deploy svc Tiller-deploy pod Service Account Role RoleBinding Release secrets RBAC Release secrets Release configmap • Secrets are still limited to 1MB in size -
@hayorov • By default Tiller stores releases information in ConfigMaps
Release information Tiller-deploy svc Tiller-deploy pod Service Account Role RoleBinding Release secrets RBAC Release secrets • Secrets are still limited to 1MB in size -
@hayorov • Use HTTPS always • Publish signed charts •
Helm client supports repo certs • Chartmuseum supports basic auth • helm-gcs plugin with GCP auth Chart Repos Helm client Signed Chart Repo fetch Chart Repo -
@hayorov • Use HTTPS always • Publish signed charts •
Helm client supports repo certs • Chartmuseum supports basic auth • helm-gcs plugin with GCP auth Chart Repos Helm client Signed Chart Repo fetch HTTPS mTLS or basic auth -
@hayorov gRPC Helm client Kubeconfig gRPC • Tiller supports TLS
on gRPC Tiller-deploy svc Tiller-deploy pod Service Account Role RoleBinding Release configmap RBAC Tiller-deploy svc -
@hayorov gRPC Helm client Kubeconfig gRPC • Tiller supports TLS
on gRPC Tiller-deploy svc Tiller-deploy pod Service Account Role RoleBinding Release configmap RBAC TLS -
@hayorov Secured Helm Helm client Chart Repo K8s cluster kube-system
ns microservice ns Kube-api server Tiller-deploy svc Release secret Microservice pod release ns(s) Release deployment Release svc Release configmap fetch Kubeconfig HTTPS gRPC gRPC Service Account HTTPS TLS or basic auth mTLS RBAC mTLS Tiller-deploy pod -
@hayorov Helm 3 is the next big thing • Single-server
architecture (no more Tiller) • State storage based of Release object (CRD) • Embedded Lua engine for scripting • Schematized values files (values.schema.yaml) • Single event-driven model Current status: a design proposal document Future of Helm and alternatives 3 -
@hayorov Any alternatives? • Ksonnet, Metaparticle • Your configuration mngt
system (ansible, terraform, chef …) • CoreOS Operator Framework (1k+ ⭐) Helm add-ons: • Draft, Scaffold Future of Helm and alternatives -
@hayorov Any alternatives? • Ksonnet, Metaparticle • Your configuration mngt
system (ansible, terraform, chef …) • CoreOS Operator Framework (1k+ ⭐) Helm add-ons: • Draft, Scaffold Future of Helm and alternatives more control more k8s native -
@hayorov Any alternatives? • Ksonnet, Metaparticle • Your configuration mngt
system (ansible, terraform, chef …) • CoreOS Operator Framework (1k+ ⭐) Helm add-ons: • Draft, Scaffold Future of Helm and alternatives more control more k8s native v2 -
@hayorov Any alternatives? • Ksonnet, Metaparticle • Your configuration mngt
system (ansible, terraform, chef …) • CoreOS Operator Framework (1k+ ⭐) Helm add-ons: • Draft, Scaffold Future of Helm and alternatives more control more k8s native v3 v2 -
@hayorov Any alternatives? • Ksonnet, Metaparticle • Your configuration mngt
system (ansible, terraform, chef …) • CoreOS Operator Framework (1k+ ⭐) Helm add-ons: • Draft, Scaffold Future of Helm and alternatives more control more k8s native v3 v2 K Ksonnet, Metaparticle -
@hayorov Any alternatives? • Ksonnet, Metaparticle • Your configuration mngt
system (ansible, terraform, chef …) • CoreOS Operator Framework (1k+ ⭐) Helm add-ons: • Draft, Scaffold Future of Helm and alternatives more control more k8s native v3 Y Your Cfg management v2 K Ksonnet, Metaparticle -
@hayorov Any alternatives? • Ksonnet, Metaparticle • Your configuration mngt
system (ansible, terraform, chef …) • CoreOS Operator Framework (1k+ ⭐) Helm add-ons: • Draft, Scaffold Future of Helm and alternatives more control more k8s native v3 Operator Framework Y Your Cfg management v2 K Ksonnet, Metaparticle -
@hayorov Any alternatives? • Ksonnet, Metaparticle • Your configuration mngt
system (ansible, terraform, chef …) • CoreOS Operator Framework (1k+ ⭐) Helm add-ons: • Draft, Scaffold Future of Helm and alternatives more control more k8s native v3 Operator Framework Y Your Cfg management v2 A Draft, Skaffold K Ksonnet, Metaparticle