OpenStack host maintenance and upgrade in interaction with application on top of it
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

42 lines
833 B

apiVersion: apps/v1
kind: ReplicaSet
metadata:
name: demo-nonha
labels:
app: demo-nonha
spec:
replicas: 3
selector:
matchLabels:
app: demo-nonha
template:
metadata:
labels:
app: demo-nonha
spec:
containers:
- name: nginx
image: nginx
resources:
requests:
cpu: "15"
ports:
- containerPort: 80
volumeMounts:
- name: workdir
mountPath: /usr/share/nginx/html
initContainers:
- name: install
image: busybox
command:
- wget
- "-O"
- "/work-dir/index.html"
- http://kubernetes.io
volumeMounts:
- name: workdir
mountPath: "/work-dir"
dnsPolicy: Default
volumes:
- name: workdir
emptyDir: {}