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.
 
 
 
 
 
 

50 lines
961 B

apiVersion: v1
kind: Service
metadata:
name: miweb
spec:
type: NodePort
ports:
- name: http
port: 80
nodePort: 30080
targetPort: miweb-http
selector:
app: miweb
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: miweb
labels:
app: miweb
spec:
selector:
matchLabels:
app: miweb
tier: frontend
strategy:
type: Recreate
template:
metadata:
labels:
app: miweb
tier: frontend
spec:
containers:
- name: miweb
#image: linuxserver/nginx
image: docker-registry:32000/minginx:2.0
#image: httpd
ports:
- containerPort: 80
name: "miweb-http"
volumeMounts:
- name: miweb-www-folder
mountPath: /usr/share/nginx/html
imagePullSecrets:
- name: reg-cred-secret
volumes:
- name: miweb-www-folder
persistentVolumeClaim:
claimName: miweb-pv-claim