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

use kubeedge-pi-counter-app.yaml problem? #151

Open
SYanalyser opened this issue Sep 20, 2023 · 3 comments
Open

use kubeedge-pi-counter-app.yaml problem? #151

SYanalyser opened this issue Sep 20, 2023 · 3 comments

Comments

@SYanalyser
Copy link

SYanalyser commented Sep 20, 2023

environment:
kubeedge-v1.13.0

add imagePullSecrets
cat kubeedge-pi-counter-app.yaml

apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    k8s-app: kubeedge-pi-counter
  name: kubeedge-pi-counter
  namespace: default
spec:
  selector:
    matchLabels:
      k8s-app: kubeedge-pi-counter
  template:
    metadata:
      labels:
        k8s-app: kubeedge-pi-counter
    spec:
      nodeName: edgenode-u39j
      nodeSelector:
        node-role.kubernetes.io/master: ""
      hostNetwork: true
      tolerations:
      - key: node-role.kubernetes.io/edge
        operator: Exists
        effect: NoSchedule
      containers:
      - name: kubeedge-pi-counter
        image: 172.26.161.130:30006/dev-test/kubeedge/kubeedge-counter-app:v1.0.0
        imagePullPolicy: IfNotPresent
      imagePullSecrets:
      - name: regcred
      nodeSelector:
        node-role.kubernetes.io/edge: ""
      restartPolicy: Always
```
`

kubectl logs kubeedge-pi-counter-6757859b6c-7wpw4
`W0920 11:11:11.899378       1 client_config.go:608] Neither --kubeconfig nor --master was specified.  Using the inClusterConfig.  This might not work.
W0920 11:11:11.899610       1 client_config.go:613] error creating inClusterConfig, falling back to default config: unable to load in-cluster configuration, KUBERNETES_SERVICE_HOST and KUBERNETES_SERVICE_PORT must be defined
2023/09/20 11:11:11 Failed to create KubeConfig, error : invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
`
@SYanalyser
Copy link
Author

looking for help

@Lazy-Guys
Copy link

Lazy-Guys commented Oct 27, 2023

Hi, you used a wrong image.
==>image: 172.26.161.130:30006/dev-test/kubeedge/kubeedge-counter-app:v1.0.0
It shoule be ended with kubeedge-pi-counter.
Please check your deployment yaml :)

@SYanalyser
Copy link
Author

@Lazy-Guys built it in the harbor. That has nothing to do with it。error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable

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

2 participants