Comments (10)
Have you checked the 'Known issues' list in the README? Specifically, https://github.com/cloudnativedevops/demo#apiversion
from demo.
Resolve what?
from demo.
@bitfield
kubectl create -f k8s/deployment.yaml
error: unable to recognize "k8s/deployment.yaml": no matches for kind "Deployment" in version "extensions/v1beta1"
Getting this
So pls tell how to resolve this :)
from demo.
@bitfield
Below is the Deployment.yaml code :-
kind: Deployment
apiVersion: extensions/v1beta1
metadata:
name: valkyrie-dev
spec:
replicas: 1
template:
metadata:
name: valkyrie-app
labels:
app: valkyrie-app
role: frontend-backend
env: dev
spec:
containers:
- name: backend
image: gcr.io/qwiklabs-gcp-03-70bdda2e4e03/valkyrie-app:v0.0.1
resources:
limits:
memory: "500Mi"
cpu: "100m"
imagePullPolicy: Always
readinessProbe:
httpGet:
path: /healthz
port: 8080
command: ["app","-port=8080"]
ports:
- name: backend
containerPort: 8080
- name: frontend
image: gcr.io/qwiklabs-gcp-03-70bdda2e4e03/valkyrie-app:v0.0.1
resources:
limits:
memory: "500Mi"
cpu: "100m"
imagePullPolicy: Always
readinessProbe:
httpGet:
path: /healthz
port: 80
command: ["app","-frontend=true","-backend-service=http://127.0.0.1:8080","-port=80"]
ports:
- name: frontend
containerPort: 80
Pls tell asap :)
from demo.
Resolve this!
@iamayushdas you seem like a smart individual on a path of learning - you've found the best book on Kubernetes after all. It is also important to hone the softer skills like how to collaborate - by remaining polite, explaining the issue clearly, and being respectful of people's time. There's great benefits to be had.
from demo.
@moth sir pls tell how to resolve the issue I explained above
from demo.
thanks @bitfield will try again and let u know asap :)
from demo.
Have you checked the 'Known issues' list in the README? Specifically, https://github.com/cloudnativedevops/demo#apiversion
I tried this. But ended up in having error
error: error validating "k8s/deployment.yaml": error validating data: ValidationError(Deployment.spec): missing required field "selector" in io.k8s.api.apps.v1.DeploymentSpec; if you choose to ignore these errors, turn validation offwith --validate=false
from demo.
resolved!
from demo.
Resolved!
from demo.
Related Issues (13)
- safaribooksonline.com code examples HOT 7
- Somwhat confusing port mapping in example HOT 2
- apiVersion: extensions/v1beta1 errors HOT 4
- hello-helm example fails to install HOT 4
- Helm 3 HOT 2
- Sops example error HOT 2
- Sops and helm usage proposal HOT 2
- Known issue guide HOT 1
- Chapter 2 kubectl deployment doesn't work on a real cluster HOT 4
- kubectl port-forward gives "error upgrading connection: error dialing backend: dial tcp 10.204.101.149:10250: i/o timeout" HOT 5
- Error: container has runAsNonRoot and image will run as root HOT 1
- ERR_EMPTY_RESPONSE with hello Docker HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from demo.