kubernetes-up-and-running/8-1-kuard-rs.yaml
mikeboensel ca19c02caf
Update 8-1-kuard-rs.yaml
Manifest seems to have become out dated. When applying it failed with " no matches for kind "ReplicaSet" in version "extensions/v1beta1"". Newer definitions call for a "selector" section. Not sure if it exactly matches the author's intent, but it works, so seems like an improvement.
2021-02-12 17:53:28 -05:00

23 lines
368 B
YAML

apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: kuard
labels:
app: kuard
version: "2"
spec:
replicas: 1
selector:
matchLabels:
app: kuard
version: "2"
template:
metadata:
labels:
app: kuard
version: "2"
spec:
containers:
- name: kuard
image: "gcr.io/kuar-demo/kuard-amd64:2"