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.
23 lines
368 B
YAML
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"
|