Skip to content

Latest commit

 

History

History
51 lines (43 loc) · 5.73 KB

README.org

File metadata and controls

51 lines (43 loc) · 5.73 KB

AuditLogger

Introduction

Part of the APISnoop suite of software, AuditLogger’s goal is to recieve Kubernetes API server events and load them into a live APISnoop database running in-cluster.

Deploying

Kubernetes

helm install auditlogger -n apisnoop chart/auditlogger

Configuration

Deployment

**Helm values**

ParameterDescriptionDefault
replicaCountPod replicas1
postgresConnectionStringPostgres connection string for SnoopDBpostgres://apisnoop:apisnoop@snoopdb/apisnoop?sslmode=disable
auditEventTablePostgres table to write live audit events totable.audit_event
noDebugDisable debug logsfalse
image.repositoryThe repo where the image livesgcr.io/apisnoop/auditlogger
image.tagSpecifies a tag of from the image to usenil
image.pullPolicycontainer pull policyIfNotPresent
imagePullSecretsReferences for the registry secrets to pull the container from[]
nameOverrideExpand the name of the chart""
fullNameOverrideCreate a FQDN for the app name""
podSecurityContext.readOnlyRootFilesystemSet the rootfs as read-onlytrue
podSecurityContext.runAsUserThe user to run as1000
podSecurityContext.runAsGroupThe group to run as1000
podSecurityContext.allowPrivilegeEscalationIf the process in the container can become rootfalse
service.typeIn way which the app is exposedClusterIP
service.portThe port to run the app on8080
autoscaling.enabledIf the Pods should autoscalefalse
autoscaling.minReplicasMinimum amount of Pods2
autoscaling.maxReplicasMaximum amount of Pods5
autoscaling.targetCPUUtilizationPercentageHow much resource should be utilized before scaling5
annotationsdeclare annotations for all resources{}
resources.limits.cpumax amount of CPU250m
resources.limits.memorymax amount of memory40Mi
resources.resources.cpurequested amount of CPU250m
resources.limits.memorymax amount of memory40Mi
nodeSelectordelcare the node labels for Pod scheduling{}
tolerationsdeclare the toleration labels for Pod scheduling[]
affinitydeclare the affinity settings for the Pod scheduling{}

Cluster

The cluster must be configured with audit policies and audit policy webhooks enabled, pointing to http://10.96.96.96:9900/events.