Code Monkey home page Code Monkey logo

Comments (3)

solsson avatar solsson commented on July 24, 2024

That's interesting. I've been running mostly on 1.7, but also tested with latest 1.6 on minikube. The release notes for 1.6.0 include: "Init containers have graduated to GA and now appear as a field"

The json-in-yaml syntax was quite unmaintainable IMO, so I'm very reluctant to use that. Can you try to investigate why the initContainers field isn't accepted (what's your validation error?) rather than how to use JSON?

from kubernetes-kafka.

cairesvs avatar cairesvs commented on July 24, 2024

the initContainers simply don't run and don't throw any validation error as well.

I'm going to do more in depth debugging to I can find more information.

from kubernetes-kafka.

ben-harack avatar ben-harack commented on July 24, 2024

@cairesvs I was able to get this working on Kubernetes 1.5 with the following syntax:

 annotations:
        pod.beta.kubernetes.io/initContainers: "[
            {
                'name': 'init-config',
                'image': 'solsson/kafka-initutils@sha256:c98d7fb5e9365eab391a5dcd4230fc6e72caf929c60f29ff091e3b0215124713',
                'env': [
                  {
                    'name': 'NODE_NAME',
                    'valueFrom': {
                      'fieldRef': {
                        'fieldPath': 'spec.nodeName'
                      }
                    }
                  }
                ]
                'command': ['/bin/bash', '/etc/kafka/init.sh'],
                'volumeMounts': [
                  {
                    'name': 'config',
                    'mountPath': '/etc/kafka'
                  }
                ]
            }
        ]"

from kubernetes-kafka.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.