Coder Social home page Coder Social logo

kahootali / counter-app Goto Github PK

View Code? Open in Web Editor NEW
31.0 31.0 41.0 14 KB

Its a simple counter app which logs and increments the count from a file. Repository includes Dockerfile and respective kubernetes manifest

Dockerfile 31.27% Shell 68.73%

counter-app's People

Contributors

kahootali avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

counter-app's Issues

Pod has unbound immediate PersistentVolumeClaims

Hi, I'm trying your tutorial, and when applying either the replicaset or the daemonset, the pods get scheduled but they stay on "pending".
kubectl describe pods counter-app-6pxrw (a pod in the replicaset) shows the following:

Name:           counter-app-6pxrw
Namespace:      default
Priority:       0
Node:           <none>
Labels:         app=counter
                controller-revision-hash=686bfcc966
                pod-template-generation=1
Annotations:    <none>
Status:         Pending
IP:
IPs:            <none>
Controlled By:  DaemonSet/counter-app
Containers:
  counter:
    Image:        kahootali/counter:1.0
    Port:         <none>
    Host Port:    <none>
    Environment:  <none>
    Mounts:
      /app/ from counter (rw)
      /var/run/secrets/kubernetes.io/serviceaccount from default-token-bx7rz (ro)
Conditions:
  Type           Status
  PodScheduled   False
Volumes:
  counter:
    Type:       PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
    ClaimName:  counter
    ReadOnly:   false
  default-token-bx7rz:
    Type:        Secret (a volume populated by a Secret)
    SecretName:  default-token-bx7rz
    Optional:    false
QoS Class:       BestEffort
Node-Selectors:  <none>
Tolerations:     :NoSchedule
                 node.kubernetes.io/disk-pressure:NoSchedule
                 node.kubernetes.io/memory-pressure:NoSchedule
                 node.kubernetes.io/not-ready:NoExecute
                 node.kubernetes.io/pid-pressure:NoSchedule
                 node.kubernetes.io/unreachable:NoExecute
                 node.kubernetes.io/unschedulable:NoSchedule
Events:
  Type     Reason            Age        From               Message
  ----     ------            ----       ----               -------
  **Warning  FailedScheduling  <unknown>  default-scheduler  running "VolumeBinding" filter plugin for pod "counter-app-6pxrw": pod has unbound immediate PersistentVolumeClaims**

I get the same error for the daemonset.

unable to recognize "deployment.yaml": no matches for kind "Deployment" in version "apps/v1beta1"

Hi, when trying to apply deployment.yaml, I get the following error:

error: unable to recognize "deployment.yaml": no matches for kind "Deployment" in version "apps/v1beta1"

Does the template need to be updated?
My Kubectl version shows:

Client Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-20T12:52:00Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}
Server Version: version.Info{Major:"1", Minor:"18", GitVersion:"v1.18.3", GitCommit:"2e7996e3e2712684bc73f0dec0200d64eec7fe40", GitTreeState:"clean", BuildDate:"2020-05-20T12:43:34Z", GoVersion:"go1.13.9", Compiler:"gc", Platform:"linux/amd64"}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.