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.
 
 
 
 
 
 

61 lines
1.1 KiB

apiVersion: v1
kind: Service
metadata:
name: hello-dos
spec:
type: ClusterIP
ports:
- name: http
port: 80
selector:
app: hello-dos
---
apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: hello-dos-pv-claim
labels:
app: hello-dos
spec:
accessModes:
- ReadWriteMany
storageClassName: ""
resources:
requests:
storage: 2Gi
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: hello-dos
labels:
app: hello-dos
spec:
selector:
matchLabels:
app: hello-dos
tier: frontend
strategy:
type: Recreate
template:
metadata:
labels:
app: hello-dos
tier: frontend
spec:
containers:
- name: hello-dos
#image: linuxserver/nginx
image: docker-registry:32000/minginx:2.0
#image: httpd
ports:
- containerPort: 80
volumeMounts:
- name: hello-dos-folder
mountPath: /usr/share/nginx/html
imagePullSecrets:
- name: reg-cred-secret
volumes:
- name: hello-dos-folder
persistentVolumeClaim:
claimName: hello-dos-pv-claim