use kubeedge-pi-counter-app.yaml problem?
- Dominant language
- Go
- Stars
- 269
- Forks
- 174
- PR merge metrics
- No merged PRs in 30d
Description
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
`
Contributor guide
No contributing guide indexed for this repository
Research direction
Start with kubeedge-pi-counter-app.yaml and the kubectl logs output, then inspect how the counter app obtains Kubernetes client configuration in this deployment. Done means identifying the configuration mismatch and documenting or applying the manifest or application change needed for the pod to start without the shown client-config error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- go, kubernetes
- Domain
- devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100