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 not assign alpineImage, should use default value #427

Closed
jinyingsunny opened this issue Jan 26, 2024 · 2 comments
Closed

if not assign alpineImage, should use default value #427

jinyingsunny opened this issue Jan 26, 2024 · 2 comments
Assignees
Labels
affects/master PR/issue: this bug affects master version. invalid process/done Process of bug severity/major Severity of bug type/bug Type: something is unexpected

Comments

@jinyingsunny
Copy link

jinyingsunny commented Jan 26, 2024

as title.
yaml文件中不指定alpineImage:

spec:
  #alpineImage: "reg.vesoft-inc.com/cloud-dev/nebula-alpine:latest"

生成的-oyaml 文件:
image

# kubectl -n nebula describe nc nebulav
Name:         nebulav
Namespace:    nebula
Labels:       <none>
Annotations:  <none>
API Version:  apps.nebula-graph.io/v1alpha1
Kind:         NebulaCluster
Metadata:
  Creation Timestamp:  2024-01-26T08:14:56Z
  Finalizers:
    apps.nebula-graph.io/cluster-cleanup
  Generation:        2
  Resource Version:  50223617
  UID:               3ceea4d1-0fb5-4388-bce9-1f21884d92cb
Spec:
  Console:
    Image:            vesoft/nebula-console
    Version:          v3.6.0
  Enable PV Reclaim:  true
  Exporter:
    Http Port:      9100
    Image:          vesoft/nebula-stats-exporter
    Max Requests:   20
    Replicas:       1
    Version:        latest
  Failover Period:  5m0s
  Graphd:
    Config:
      Stderrthreshold:  0
    Image:              reg.vesoft-inc.com/rc/nebula-graphd-ent
    Replicas:           6
    Resources:
      Limits:
        Cpu:     1
        Memory:  1Gi
      Requests:
        Cpu:          200m
        Memory:       500Mi
    Version:          v3.5-snap-ent
  Image Pull Policy:  Always
  Image Pull Secrets:
    Name:  image-nebula-ent-sc-secret
  Metad:
    Config:
      license_manager_url:  nebula-license-manager.nebula-license-manager.svc.cluster.local:9119
      Stderrthreshold:      2
      zone_list:            us-east-2a,us-east-2b,us-east-2c
    Data Volume Claim:
      Resources:
        Requests:
          Storage:         2Gi
      Storage Class Name:  local-path
    Image:                 reg.vesoft-inc.com/rc/nebula-metad-ent
    Replicas:              3
    Resources:
      Limits:
        Cpu:     1
        Memory:  1Gi
      Requests:
        Cpu:     300m
        Memory:  500Mi
    Version:     v3.5-snap-ent
  Node Selector:
    Nebula:  cloud
  Reference:
    Name:          statefulsets.apps
    Version:       v1
  Scheduler Name:  default-scheduler
  Ssl Certs:
    Ca Cert:               root.crt
    Ca Secret:             ca-cert
    Client CA Cert:        ca.crt
    Client Cert:           tls.crt
    Client Key:            tls.key
    Client Secret:         client-cert
    Insecure Skip Verify:  true
    Server Cert:           tls.crt
    Server Key:            tls.key
    Server Secret:         server-cert
  Storaged:
    Config:
      Stderrthreshold:  2
    Data Volume Claims:
      Resources:
        Requests:
          Storage:         1288490188800m
      Storage Class Name:  local-path
      Resources:
        Requests:
          Storage:         1395864371200m
      Storage Class Name:  local-path
      Resources:
        Requests:
          Storage:         1503238553600m
      Storage Class Name:  local-path
    Enable Auto Balance:   true
    Image:                 reg.vesoft-inc.com/rc/nebula-storaged-ent
    Replicas:              3
    Resources:
      Limits:
        Cpu:     1
        Memory:  1Gi
      Requests:
        Cpu:     300m
        Memory:  500Mi
    Version:     v3.5-snap-ent
  Topology Spread Constraints:
    Topology Key:        topology.kubernetes.io/zone
    When Unsatisfiable:  ScheduleAnyway
Status:
  Conditions:
    Last Transition Time:  2024-01-26T08:16:01Z
    Last Update Time:      2024-01-26T08:16:01Z
    Message:               Nebula cluster is running
    Reason:                Ready
    Status:                True
    Type:                  Ready
  Graphd:
    Phase:    Running
    Version:  v3.5-snap-ent
    Workload:
      Available Replicas:   6
      Collision Count:      0
      Current Replicas:     6
      Current Revision:     nebulav-graphd-564fbf4bdb
      Observed Generation:  1
      Ready Replicas:       6
      Replicas:             6
      Update Revision:      nebulav-graphd-564fbf4bdb
      Updated Replicas:     6
  Metad:
    Phase:    Running
    Version:  v3.5-snap-ent
    Workload:
      Available Replicas:   3
      Collision Count:      0
      Current Replicas:     3
      Current Revision:     nebulav-metad-f96c46899
      Observed Generation:  1
      Ready Replicas:       3
      Replicas:             3
      Update Revision:      nebulav-metad-f96c46899
      Updated Replicas:     3
  Observed Generation:      2
  Storaged:
    Phase:    Running
    Version:  v3.5-snap-ent
    Workload:
      Available Replicas:   3
      Collision Count:      0
      Current Replicas:     3
      Current Revision:     nebulav-storaged-dfd5c4bfc
      Observed Generation:  1
      Ready Replicas:       3
      Replicas:             3
      Update Revision:      nebulav-storaged-dfd5c4bfc
      Updated Replicas:     3
  Version:                  3.5-snap-ent-ent
Events:                     <none>

Your Environments (required)

operator:snap-1.30

Expected behavior

if not assign alpineImage, should use default image.

@jinyingsunny jinyingsunny added the type/bug Type: something is unexpected label Jan 26, 2024
@github-actions github-actions bot added affects/none PR/issue: this bug affects none version. severity/none Severity of bug labels Jan 26, 2024
@jinyingsunny jinyingsunny added affects/master PR/issue: this bug affects master version. severity/major Severity of bug invalid and removed severity/none Severity of bug affects/none PR/issue: this bug affects none version. labels Jan 26, 2024
@jinyingsunny
Copy link
Author

这个alineImage是用来更改默认值的,不指定就会用默认值创建container,不指定也不会在nc中直接出现 ,创建nc就没问题。

@jinyingsunny
Copy link
Author

用命令 kubectl -n nebula get pod nebulav-storaged-0 -o yaml 可以看到,当不指定alpine的值时,使用的默认值 就是:vesoft/nebula-alpine:latest
image

@jinyingsunny jinyingsunny added process/done Process of bug and removed process/fixed Process of bug labels Feb 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects/master PR/issue: this bug affects master version. invalid process/done Process of bug severity/major Severity of bug type/bug Type: something is unexpected
Projects
None yet
Development

No branches or pull requests

2 participants