A simple Kubernetes operator for generating a Seq API.
190
This container is used as part of the Seq API Key Operator. It is used to create API keys in Seq and store them in Kubernetes secrets.
Create a simple values files called values.yaml and populate it as follows:
seq:
serverUrl: "https://yourseq.instance.com"
apiKey: ""
You'll need an API key with all permissions in Seq as well as the URL of your Seq instance.
helm upgrade --install -n seqapikey-system --create-namespace seqapikey-operator oci://registry-1.docker.io/cansupportme/seq-apikey-operator operator
The following manifest will ultimately create a Seq API key called AutoGen-default-apikey-for-product with an API which matches the value seqApiKey value in a secret called apikey-secret in the default namespace.
This secret can be referenced in your application. The additional properties Application and Microservice will appear under "Attached properties" in the settings for the newly created API key in Seq.
apiVersion: seq.cansupport.me/v1alpha1
kind: SeqApiKey
metadata:
name: apikey-for-product
namespace: default
spec:
secretName: apikey-secret
additionalProperties:
- name: Application
value: my-product-name
- name: Microservice
value: my-microservice
apikey-secret) will generate a new API key and store this in a new secret and update Seq with the new API key. Note that this will quickly delete then recreate the API key in Seq as token updating isn't permitted.This operator is based on the CanSupportMe.Operator package which is a package designed for building simple Kubernetes operators.
Content type
Helm
Digest
sha256:184c8aa93…
Size
2.4 kB
Last updated
over 2 years ago
helm pull oci://registry-1.docker.io/cansupportme/seq-apikey-operator --version 1.0.1