<#C03G7LJTS2G|troubleshooting> Hi Team, I am tryin...
# troubleshooting
u
#troubleshooting Hi Team, I am trying to deploy a streaming job using flink Kubernetes operator. We have quite a few properties that needs to be available for the job to run. Can we add all these properties in configmap and Flinkdeployment can read the properties from the configmap. it will be helpful if someone can provide me an example deployment manifest of FlinkDeployment using the configmap for application properties.
p
What I've done in the past was to create a ConfigMap and mount is as a
application.properties
inside my pod. Then on the app I use
ParameterTool
to read that file. Is this what you want? I can definitely share if this is the case
u
Thanks @Pedro Mázala. yes i am trying something similar, it will be helpful if you could share the manifests samples.
p
Copy code
apiVersion: flink.apache.org/v1beta1
kind: FlinkDeployment
metadata:
  name: {{ template "pipleine.name" . }}
spec:
  image: "..."
  imagePullPolicy: Always
  serviceAccount: ...
  flinkVersion: ...
  podTemplate:
    spec:
      containers:
        # Do not change the main container name
        - name: flink-main-container
          env:
            ...
          volumeMounts:
            - name: {{ template "pipleine.name" . }}-config-volume
              mountPath: "/configmaps"
              readOnly: true
      volumes:
        - name: {{ template "pipleine.name" . }}-config-volume
          configMap:
            name: {{ template "pipleine.name" . }}-config
            items:
              # Content of the config map
  flinkConfiguration:
    ...
  job:
    ...
Something like this
👍 4
u
Hi @Pedro Mázala, is there way i can set the external class path when using pod template.
i was able to mount the external properties using pod template but the application jar was unable to load the properties from the location specified . As the application is looking for the property file in class path