One Sketch Away

K8s references: Configmaps

Created by Ranjith Vijayan on Apr 02, 2022

This post is created for my own reference of k8s resources as part of learning

Configmap based on yaml declaration

apiVersion: v1
kind: ConfigMap
metadata:
  name: filebeat-yaml-config
  namespace: fcubs
data:
  filebeat.yml: |-
    filebeat.inputs:
    - type: log
      enabled: true
      paths:
        - /opt/logs/**
      multiline.pattern: '^[0-9]{4}-[0-9]{2}-[0-9]{2}'
      multiline.negate: true
      multiline.match: after
  
    output.logstash:
      hosts: ["${LOGSTASH_HOST}:${LOGSTASH_PORT}"]
 
---
kubectl get cm prop-keystore -n fcubs -o json