Skip to content
This repository has been archived by the owner on Sep 27, 2023. It is now read-only.

hello-canary.yaml #18

Closed
Shashwatsingh22 opened this issue Oct 9, 2020 · 1 comment
Closed

hello-canary.yaml #18

Shashwatsingh22 opened this issue Oct 9, 2020 · 1 comment

Comments

@Shashwatsingh22
Copy link

hello-canary.yaml
---This file also giving the same error-----
error: unable to recognize "deployments/hello-canary.yaml": no matches for kind "Deployment" in version "extensions/v1beta1" #14

on running the command ---> kubectl create -f deployments/hello-canary.yaml

Originally posted by @Shashwatsingh22 in #13 (comment)

@Shashwatsingh22
Copy link
Author

apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-canary
spec:
replicas: 1
selector:
matchLabels:
app: hello
template:
metadata:
labels:
app: hello
track: canary
version: 2.0.0
spec:
containers:
- name: hello
image: kelseyhightower/hello:2.0.0
ports:
- name: http
containerPort: 80
- name: health
containerPort: 81
resources:
limits:
cpu: 0.2
memory: 10Mi
livenessProbe:
httpGet:
path: /healthz
port: 81
scheme: HTTP
initialDelaySeconds: 5
periodSeconds: 15
timeoutSeconds: 5
readinessProbe:
httpGet:
path: /readiness
port: 81
scheme: HTTP
initialDelaySeconds: 5
timeoutSeconds: 1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant