Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

K8ssandraCluster kind doesn't support pod annotations needed to inject pods into service mesh (linkerd, Istio...) #1344

Open
sanararoj opened this issue Jun 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@sanararoj
Copy link

What is missing?

K8ssandraCluster.spec.cassandra is missing podTemplateSpec, that could allow me to include annotations into cassandra pods, for instance to use linkerd service mesh implementation to enable mutualTLS in cassandra pods. This is feasible if instead of using k8ssandra-operator , I use directly cass-operator and CassandraDatacenter kind

apiVersion: cassandra.datastax.com/v1beta1
kind: CassandraDatacenter
metadata:
  name: cassandra
spec:
  superuserSecretName: cassandra
  clusterName: local
  serverType: cassandra
  serverVersion: "4.0.1"
  managementApiAuth:
    insecure: {}
  size: 1
  storageConfig:
    cassandraDataVolumeClaimSpec:
      storageClassName: local-path
      accessModes:
        - ReadWriteOnce
      resources:
        requests:
          storage: 1Gi
  resources:
    requests:
      memory: 1Gi
      cpu: 1000m
  podTemplateSpec:
    metadata:
      annotations:
        linkerd.io/inject: enabled
        config.alpha.linkerd.io/proxy-enable-native-sidecar: "true"
        config.linkerd.io/opaque-ports: "9042"
        config.linkerd.io/default-inbound-policy: all-authenticated
    spec:
      containers:
        - name: "cassandra"
  racks:
    - name: rack1
  config:
    jvm-server-options:
      heapSize: "512M"

Why do we need it?

https://docs.k8ssandra.io/reference/crd/releases/k8ssandra-operator-releases/k8ssandra-operator-crds-1.0/#k8ssandraclusterspec

To include podTemplateSpec in K8ssandraCluster kind. So annotations, I put there can be transmitted in to cassandra pods

Environment
Docker-Desktop, local laptop

  • K8ssandra Operator version:

1.16.0
Insert image tag or Git SHA here

Anything else we need to know?:

@sanararoj sanararoj added the enhancement New feature or request label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: No status
Development

No branches or pull requests

1 participant