Skip to content

Deploying git2consul in Kubernetes #5

@cdelpinogeo

Description

@cdelpinogeo

Hello,

I am trying to deploy the docker-git2consul container to kubernetes, but I have been unsuccessful in doing so. I am getting the following error when I try to deploy it:

2016-10-17T20:55:12.227582278Z Config value is not valid JSON: undefined

Here is the yaml file I created to deploy to kubernetes:

apiVersion: v1
kind: ReplicationController
metadata:
  name: git2consul
  labels:
    app: git2consul
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: git2consul
    spec:
      containers:
      - name: git2consul
        image: cimpress/git2consul
        env:
        - name: config_file
          value: '{"version":"1.0","repos [{"name":"config","url":"https://user:password@github.com:org/repo.git","branches":["master"],"hooks":[{"type":"polling","interval":"1"}]}]}'
        - name: endpoint
          value: "10.244.4.241"
        - name: port
          value: "8500"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions