Kuberenetes POD未来

时间:2018-01-20 18:15:29

标签: kubernetes jhipster

我正在尝试使用给定的(git as jhipster-registry.yml)在Kubernetes上安装Jhipster Registry作为有状态集。

我看到服务&有状态的即将来临。我没看到工人POD: - (

你能分享一下,如何让工人POD上升。

更新

我对这款jhipster& kubernetes。谢谢您的回复。粘贴下面的jhipster-register.yml 我试过的Cmds是kubectl create -f jhipster-register.yml。

错误@ kubectl描述statefulset

getCorn

YML:

  Volumes:
   config-volume:
    Type:   ConfigMap (a volume populated by a ConfigMap)
    Name:   application-config
    Optional:   false
Volume Claims:  <none>
Events:
  FirstSeen LastSeen    Count   From        SubObjectPath   Type        Reason      Message
  --------- --------    -----   ----        -------------   --------    ------      -------
  1d        5s      4599    statefulset         Warning     FailedCreate    create Pod jhipster-registry-0 in StatefulSet jhipster-registry failed error: Pod "jhipster-registry-0" is invalid: spec.containers[0].env[8].name: Invalid value: "JHIPSTER_LOGGING_LOGSTASH_ENABLED=true": a valid C identifier must start with alphabetic character or '_', followed by a string of alphanumeric characters or '_' (e.g. 'my_name',  or 'MY_NAME',  or 'MyName', regex used for validation is '[A-Za-z_][A-Za-z0-9_]*')

1 个答案:

答案 0 :(得分:0)

Your StatefulSet is invalid because of invalid ENV name.

    - name: JHIPSTER_LOGGING_LOGSTASH_ENABLED=true
      value: 'true'

You have used ENV name JHIPSTER_LOGGING_LOGSTASH_ENABLED=true which is invalid.

Correct format: [A-Za-z_][A-Za-z0-9_]*

Thats why Pods are not coming

Change StatefulSet to use as

    - name: JHIPSTER_LOGGING_LOGSTASH_ENABLED
      value: 'true'

This will work.