kahootali / counter-app Goto Github PK
View Code? Open in Web Editor NEWIts a simple counter app which logs and increments the count from a file. Repository includes Dockerfile and respective kubernetes manifest
Its a simple counter app which logs and increments the count from a file. Repository includes Dockerfile and respective kubernetes manifest
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"}
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.