SlideShare a Scribd company logo
Using source code management patterns
to configure and secure
your Kubernetes clusters
Giovanni Galloro - Customer Engineer, Google Cloud
23-24-25 Marzo, 2021
Pods
Pods
ns:app1
ns:app2
Pods
Pods
ns:app1
ns:app2
Pods
Pods
ns:app1
ns:app2
Operator team Imperative ops Multi-Platform environment
kubectl
Pods
Pods
ns:app1
ns:app2
Pods
Pods
ns:app1
ns:app2
Pods
Pods
ns:app1
ns:app2
Operator team Config repo Multi-Platform environment
Anthos Config Management (ACM) Components
Config Sync Policy Controller Config Connector
Hosted ACM UI and API
ACM Operator
GKE
Anthos Service
Mesh
Cloud Code
Cloud Run
Anthos Con g
Management
Cloud Logging,
Cloud Monitoring
Google Cloud
Baremetal Other public clouds:
AWS EC2, Azure
VMs
Attached
clusters: EKS,
AKS
On-prem
hypervisor
GKE
Anthos Service
Mesh
Cloud Code
Cloud Run
Anthos Con g
Management
Cloud Logging,
Cloud Monitoring
Google Cloud
Baremetal Other public clouds:
AWS EC2, Azure
VMs
Attached
clusters: EKS,
AKS
On-prem
hypervisor
Config Sync Policy Controller Config Connector
Hosted ACM UI and API
ACM Operator
Anthos Config Management (ACM) Components
Pods
Pods
ns:app1
ns:app2
Pods
Pods
ns:app1
ns:app2
Pods
Pods
ns:app1
ns:app2
Operator team Config repo Multi-Platform environment
Branch Validate Review Merge Deploy
Source Code Management approach to
Config Management
Config Sync Policy Controller Config Connector
Hosted ACM UI and API
ACM Operator
Anthos Config Management (ACM) Components
Policy controller
Based on Open Policy Agent’s
Gatekeeper, ACM Policy Controller
provides first-class integration between
OPA and Kubernetes via a custom
controller.
It turns Rego policies into Kubernetes
objects, allowing them to be customized
and deployed using standard workflows.
GKE
Policy Controller
AdmissionReview
(request)
AdmissionReview
(response)
kubectl Config Mgmt API Clients
Policy
Rule Definition
Enforcement
Using source code management patterns to configure and secure your Kubernetes clusters
Pod Security Policies → Gatekeeper Constraints
PSP Field Name OPA GK Constraint Template
privileged privileged-containers
hostPID, hostIPC host-namespaces
hostNetwork, hostPorts host-network-ports
volumes volumes
allowedHostPaths host-filesystem
allowedFlexVolumes flexvolume-drivers
runAsUser, runAsGroup, supplementalGroups users*
fsGroup users*
readOnlyRootFilesystem read-only-root-filesystem
allowPrivilegeEscalation allow-privilege-escalation
defaultAddCapabilities, requiredDropCapabilities, allowedCapabilities capabilities
seLinux seLinux
allowedProcMountTypes proc-mount
Annotations for AppArmor profile apparmor
Annotations for seccomp profile seccomp
forbiddenSysctls,allowedUnsafeSysctls forbidden-sysctls
Config Sync Policy Controller Config Connector
Hosted ACM UI and API
ACM Operator
Anthos Config Management (ACM) Components
How does KCC work?
KCC resources are
registered via Custom
Resource Definitions
watched by the KCC
controller
Spanner
Cloud
SQL
Pub/Sub
Storage
Redis
IAM
Kubernetes
cluster
KCC
controller
manager
CRD
etcd
CRUD
APIs
API server
Q & A

More Related Content

PDF
AWS Summit Singapore 2019 | Autoscaling Your Kubernetes Workloads
PDF
Multi-cloud Kubernetes BCDR with Velero
PDF
Effective Kubernetes - Is Kubernetes the new Linux? Is the new Application Se...
PPTX
CI Implementation with Kubernetes at LivePerson by Saar Demri
PDF
Running I/O intensive workloads on Kubernetes, by Nati Shalom
PDF
Kubernetes as Infrastructure Abstraction
PDF
Open shift 4 infra deep dive
PDF
Kubernetes stack reliability
AWS Summit Singapore 2019 | Autoscaling Your Kubernetes Workloads
Multi-cloud Kubernetes BCDR with Velero
Effective Kubernetes - Is Kubernetes the new Linux? Is the new Application Se...
CI Implementation with Kubernetes at LivePerson by Saar Demri
Running I/O intensive workloads on Kubernetes, by Nati Shalom
Kubernetes as Infrastructure Abstraction
Open shift 4 infra deep dive
Kubernetes stack reliability

What's hot (20)

PDF
Openstack days sv building highly available services using kubernetes (preso)
PDF
From Code to Kubernetes
PPTX
Distributed tensorflow on kubernetes
PPTX
Building Portable Applications with Kubernetes
PPTX
Canary Releases on Kubernetes w/ Spinnaker, Istio, and Prometheus
PPTX
Application Portability with Kubernetes (k8)
PDF
Managing kubernetes deployment with operators
PDF
How to integrate Kubernetes in OpenStack: You need to know these project
PDF
從Google cloud看kubernetes服務
PDF
Centralizing Kubernetes Management in Restrictive Environments
PDF
AWS Summit Singapore 2019 | Latest Trends for Cloud-Native Application Develo...
PDF
OpenShift 4, the smarter Kubernetes platform
PPTX
Kubernetes in Highly Restrictive Environments
PDF
Building streaming applications using a managed Kafka service | DevNation Tec...
PPTX
Centralizing Kubernetes and Container Operations
PDF
Helm - Package Manager for Kubernetes
PDF
2013 linux days final
PPTX
Tectonic Summit 2016: Multi-Cluster Kubernetes: Planning for Unknowns
PPTX
Developer Intro to OpenShift
PPTX
Building Developer Pipelines with PKS, Harbor, Clair, and Concourse
Openstack days sv building highly available services using kubernetes (preso)
From Code to Kubernetes
Distributed tensorflow on kubernetes
Building Portable Applications with Kubernetes
Canary Releases on Kubernetes w/ Spinnaker, Istio, and Prometheus
Application Portability with Kubernetes (k8)
Managing kubernetes deployment with operators
How to integrate Kubernetes in OpenStack: You need to know these project
從Google cloud看kubernetes服務
Centralizing Kubernetes Management in Restrictive Environments
AWS Summit Singapore 2019 | Latest Trends for Cloud-Native Application Develo...
OpenShift 4, the smarter Kubernetes platform
Kubernetes in Highly Restrictive Environments
Building streaming applications using a managed Kafka service | DevNation Tec...
Centralizing Kubernetes and Container Operations
Helm - Package Manager for Kubernetes
2013 linux days final
Tectonic Summit 2016: Multi-Cluster Kubernetes: Planning for Unknowns
Developer Intro to OpenShift
Building Developer Pipelines with PKS, Harbor, Clair, and Concourse
Ad

Similar to Using source code management patterns to configure and secure your Kubernetes clusters (20)

PDF
Anthos Security: modernize your security posture for cloud native applications
PDF
Kubernetes One-Click Deployment: Hands-on Workshop (Mainz)
PDF
DCEU 18: Docker Container Networking
PDF
AWS reinvent 2019 recap - Riyadh - Containers and Serverless - Paul Maddox
PDF
04_Azure Kubernetes Service: Basic Practices for Developers_GAB2019
PDF
The App Developer's Kubernetes Toolbox
PPTX
Docker Container As A Service - March 2016
PPTX
Containers as a Service with Docker
PPTX
Kubernetes Overview - Deploy your app with confidence
PPTX
Tectonic Summit 2016: Brandon Philips, CTO of CoreOS, Keynote
PDF
Azure Kubernetes Service 2019 ふりかえり
PDF
Kubernetes Operators - the next frontier in application automation - Ádám Sándor
PPTX
Implementing AKS on the Enterprise
PDF
[Global logic] container runtimes and kubernetes
PDF
Kubernetes extensibility
PPTX
Weave User Group Talk - DockerCon 2017 Recap
PDF
WSO2 Cloud and Platform as a Service Strategy
PDF
WSO2Con EU 2016: WSO2 Cloud and Platform as a Service Strategy
PDF
Aws + kubernetes = ❤︎
PDF
TDC2017 | São Paulo - Trilha Cloud Computing How we figured out we had a SRE ...
Anthos Security: modernize your security posture for cloud native applications
Kubernetes One-Click Deployment: Hands-on Workshop (Mainz)
DCEU 18: Docker Container Networking
AWS reinvent 2019 recap - Riyadh - Containers and Serverless - Paul Maddox
04_Azure Kubernetes Service: Basic Practices for Developers_GAB2019
The App Developer's Kubernetes Toolbox
Docker Container As A Service - March 2016
Containers as a Service with Docker
Kubernetes Overview - Deploy your app with confidence
Tectonic Summit 2016: Brandon Philips, CTO of CoreOS, Keynote
Azure Kubernetes Service 2019 ふりかえり
Kubernetes Operators - the next frontier in application automation - Ádám Sándor
Implementing AKS on the Enterprise
[Global logic] container runtimes and kubernetes
Kubernetes extensibility
Weave User Group Talk - DockerCon 2017 Recap
WSO2 Cloud and Platform as a Service Strategy
WSO2Con EU 2016: WSO2 Cloud and Platform as a Service Strategy
Aws + kubernetes = ❤︎
TDC2017 | São Paulo - Trilha Cloud Computing How we figured out we had a SRE ...
Ad

Recently uploaded (20)

PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
PDF
Encapsulation theory and applications.pdf
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
cuic standard and advanced reporting.pdf
PPTX
A Presentation on Artificial Intelligence
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
CIFDAQ's Market Insight: SEC Turns Pro Crypto
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PPTX
Cloud computing and distributed systems.
PPTX
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Spectral efficient network and resource selection model in 5G networks
Per capita expenditure prediction using model stacking based on satellite ima...
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
NewMind AI Monthly Chronicles - July 2025
Architecting across the Boundaries of two Complex Domains - Healthcare & Tech...
Encapsulation theory and applications.pdf
Understanding_Digital_Forensics_Presentation.pptx
Agricultural_Statistics_at_a_Glance_2022_0.pdf
cuic standard and advanced reporting.pdf
A Presentation on Artificial Intelligence
Network Security Unit 5.pdf for BCA BBA.
The Rise and Fall of 3GPP – Time for a Sabbatical?
Reach Out and Touch Someone: Haptics and Empathic Computing
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
“AI and Expert System Decision Support & Business Intelligence Systems”
CIFDAQ's Market Insight: SEC Turns Pro Crypto
Chapter 3 Spatial Domain Image Processing.pdf
Cloud computing and distributed systems.
PA Analog/Digital System: The Backbone of Modern Surveillance and Communication
MYSQL Presentation for SQL database connectivity
Spectral efficient network and resource selection model in 5G networks

Using source code management patterns to configure and secure your Kubernetes clusters

  • 1. Using source code management patterns to configure and secure your Kubernetes clusters Giovanni Galloro - Customer Engineer, Google Cloud 23-24-25 Marzo, 2021
  • 4. Anthos Config Management (ACM) Components Config Sync Policy Controller Config Connector Hosted ACM UI and API ACM Operator
  • 5. GKE Anthos Service Mesh Cloud Code Cloud Run Anthos Con g Management Cloud Logging, Cloud Monitoring Google Cloud Baremetal Other public clouds: AWS EC2, Azure VMs Attached clusters: EKS, AKS On-prem hypervisor
  • 6. GKE Anthos Service Mesh Cloud Code Cloud Run Anthos Con g Management Cloud Logging, Cloud Monitoring Google Cloud Baremetal Other public clouds: AWS EC2, Azure VMs Attached clusters: EKS, AKS On-prem hypervisor
  • 7. Config Sync Policy Controller Config Connector Hosted ACM UI and API ACM Operator Anthos Config Management (ACM) Components
  • 9. Branch Validate Review Merge Deploy Source Code Management approach to Config Management
  • 10. Config Sync Policy Controller Config Connector Hosted ACM UI and API ACM Operator Anthos Config Management (ACM) Components
  • 11. Policy controller Based on Open Policy Agent’s Gatekeeper, ACM Policy Controller provides first-class integration between OPA and Kubernetes via a custom controller. It turns Rego policies into Kubernetes objects, allowing them to be customized and deployed using standard workflows. GKE Policy Controller AdmissionReview (request) AdmissionReview (response) kubectl Config Mgmt API Clients Policy Rule Definition Enforcement
  • 13. Pod Security Policies → Gatekeeper Constraints PSP Field Name OPA GK Constraint Template privileged privileged-containers hostPID, hostIPC host-namespaces hostNetwork, hostPorts host-network-ports volumes volumes allowedHostPaths host-filesystem allowedFlexVolumes flexvolume-drivers runAsUser, runAsGroup, supplementalGroups users* fsGroup users* readOnlyRootFilesystem read-only-root-filesystem allowPrivilegeEscalation allow-privilege-escalation defaultAddCapabilities, requiredDropCapabilities, allowedCapabilities capabilities seLinux seLinux allowedProcMountTypes proc-mount Annotations for AppArmor profile apparmor Annotations for seccomp profile seccomp forbiddenSysctls,allowedUnsafeSysctls forbidden-sysctls
  • 14. Config Sync Policy Controller Config Connector Hosted ACM UI and API ACM Operator Anthos Config Management (ACM) Components
  • 15. How does KCC work? KCC resources are registered via Custom Resource Definitions watched by the KCC controller Spanner Cloud SQL Pub/Sub Storage Redis IAM Kubernetes cluster KCC controller manager CRD etcd CRUD APIs API server
  • 16. Q & A