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

If AdvertiseExternalIP is true on Configfile, startup fails #307

Open
csh995426531 opened this issue Jan 8, 2021 · 0 comments
Open

If AdvertiseExternalIP is true on Configfile, startup fails #307

csh995426531 opened this issue Jan 8, 2021 · 0 comments

Comments

@csh995426531
Copy link

my deployment.yaml content:

apiVersion: nats.io/v1alpha2
kind: NatsCluster
metadata:
  name: nats-cluster
  namespace: nats
spec:
  size: 3
  version: "2.1.8"
  pod:
    enableClientsHostPort: true
    advertiseExternalIP: true

  template:
    spec:
      serviceAccountName: "nats-server"

Run the command "kubectl apply -f operator-prereqs.yaml", Pod "nats-cluster-1" status is Error.

This is command "kubectl describe po nats-cluster-1 -n nats" output content:

Events:
  Type     Reason     Age                From               Message
  ----     ------     ----               ----               -------
  Normal   Scheduled  40s                default-scheduler  Successfully assigned nats/nats-cluster-1 to node1
  Normal   Pulled     22s (x3 over 39s)  kubelet, node1     Container image "connecteverything/nats-boot-config:0.5.2" already present on machine
  Normal   Created    22s (x3 over 38s)  kubelet, node1     Created container bootconfig
  Normal   Started    21s (x3 over 38s)  kubelet, node1     Started container bootconfig
  Warning  BackOff    10s (x4 over 37s)  kubelet, node1     Back-off restarting failed container

Command "kubectl logs nats-cluster-1 -n nats" output content:

Error from server (BadRequest): container "nats" in pod "nats-cluster-1" is waiting to start: PodInitializing
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant