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

DaemonSet does not generate pod(s) #61342

Closed
MrMic opened this issue Mar 19, 2018 · 5 comments
Closed

DaemonSet does not generate pod(s) #61342

MrMic opened this issue Mar 19, 2018 · 5 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug. sig/apps Categorizes an issue or PR as relevant to SIG Apps.
Projects

Comments

@MrMic
Copy link

MrMic commented Mar 19, 2018

Is this a BUG REPORT or FEATURE REQUEST?:

Uncomment only one, leave it on its own line:

/kind bug

/kind feature

What happened:
I try to generate a daemonSet and nothing appear

What you expected to happen:
To see the creation of 1 pod, at least ...

How to reproduce it (as minimally and precisely as possible):

Anything else we need to know?:

Environment:

  • Kubernetes version (use kubectl version):

Client Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.2", GitCommit:"5fa2db2bd46ac79e5e00a4e6ed24191080aa463b", GitTreeState:"clean", BuildDate:"2018-01-18T10:09:24Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"darwin/amd64"}
Server Version: version.Info{Major:"1", Minor:"9", GitVersion:"v1.9.2", GitCommit:"5fa2db2bd46ac79e5e00a4e6ed24191080aa463b", GitTreeState:"clean", BuildDate:"2018-01-18T09:42:01Z", GoVersion:"go1.9.2", Compiler:"gc", Platform:"linux/amd64"}

  • Cloud provider or hardware configuration:
    Hardware

  • OS (e.g. from /etc/os-release):
    Docker Community Edition
    Version 18.03.0-ce-rc4-mac57 (23360)

  • Kernel (e.g. uname -a):

  • Install tools:

  • Others:
    I have try to lauch a daemonSet with:
    kubectl apply -f fluentd.yaml

=> fluentd.yaml is:

apiVersion: extensions/v1beta1
kind: DaemonSet
metadata:
  name: fluentd
  namespace: kube-system
  labels:
    app: fluentd
spec:
  template:
    metadata:
      labels:
        app: fluentd
    spec:
      containers:
      - name: fluentd
        image: fluent/fluentd:v0.14.10
        resources:
          limits:
            memory: 200Mi
          requests:
            cpu: 100m
            memory: 200Mi
        volumeMounts:
        - name: varlog
          mountPath: /var/log
        - name: varlibdockercontainers
          mountPath: /var/lib/docker/containers
          readOnly: true
      terminationGracePeriodSeconds: 30
      volumes:
      - name: varlog
        hostPath:
          path: /var/log
      - name: varlibdockercontainers
        hostPath:
          path: /var/lib/docker/containers

and:
kubectl describe daemonset fluentd
Error from server (NotFound): daemonsets.extensions "fluentd" not found

Any idea what is happening?

@k8s-ci-robot k8s-ci-robot added needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. kind/bug Categorizes issue or PR as related to a bug. labels Mar 19, 2018
@yastij
Copy link
Member

yastij commented Mar 19, 2018

/sig apps

@k8s-ci-robot k8s-ci-robot added sig/apps Categorizes an issue or PR as relevant to SIG Apps. and removed needs-sig Indicates an issue or PR lacks a `sig/foo` label and requires one. labels Mar 19, 2018
@kow3ns kow3ns added this to Backlog in Workloads Mar 19, 2018
@infoslack
Copy link

@MrMic After version 1.9 I think extensions group should be migrated to apps as references in the documentation indicate: https://kubernetes.io/docs/reference/workloads-18-19/

@liggitt
Copy link
Member

liggitt commented Mar 20, 2018

Are you sure you are in the right namespace?

What does this return:
kubectl describe daemonset fluentd -n kube-system

@MrMic
Copy link
Author

MrMic commented Mar 20, 2018

Yes @liggitt , it works !
Thank you.
But why is there no pod ?

@liggitt
Copy link
Member

liggitt commented Mar 20, 2018

check for pods in the same namespace (kubectl get pods -n kube-system), and check the controller manager logs if you are not seeing the expected pods

/close

Workloads automation moved this from Backlog to Done Mar 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug. sig/apps Categorizes an issue or PR as relevant to SIG Apps.
Projects
Workloads
  
Done
Development

No branches or pull requests

5 participants