reworked static website at gorilych.ru

This commit is contained in:
Andrey Kartashov 2018-10-18 18:25:20 +07:00
parent 3922ae6621
commit 9146b679f5
2 changed files with 25 additions and 27 deletions

View file

@ -16,25 +16,24 @@ spec:
app: gorilychru app: gorilychru
spec: spec:
volumes: volumes:
- name: gorilychrume - name: gorilychru
hostPath: hostPath:
path: /data/gorilych.ru/me path: /data/home/www/gorilych.ru
type: type: Directory
- name: nginxdefaultconf #- name: nginxdefaultconf
hostPath: # hostPath:
path: /data/gorilych.ru/nginx.vh.default.conf # path: /data/gorilych.ru/nginx.vh.default.conf
type:
containers: containers:
- name: gorilychrume - name: gorilychru
image: nginx:alpine image: nginx:alpine
ports: ports:
- containerPort: 80 - containerPort: 80
name: gorilychrume name: gorilychru
volumeMounts: volumeMounts:
- mountPath: /usr/share/nginx/html/me - mountPath: /usr/share/nginx/html
name: gorilychrume name: gorilychru
- mountPath: /etc/nginx/conf.d/default.conf #- mountPath: /etc/nginx/conf.d/default.conf
name: nginxdefaultconf # name: nginxdefaultconf
--- ---
kind: Service kind: Service
apiVersion: v1 apiVersion: v1
@ -44,10 +43,10 @@ spec:
selector: selector:
app: gorilychru app: gorilychru
ports: ports:
- name: gorilychrume - name: gorilychru
protocol: TCP protocol: TCP
port: 81 port: 80
targetPort: gorilychrume targetPort: gorilychru
--- ---
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
@ -64,8 +63,7 @@ spec:
- host: gorilych.ru - host: gorilych.ru
http: http:
paths: paths:
- path: /me - backend:
backend:
serviceName: gorilychru serviceName: gorilychru
servicePort: 81 servicePort: 80

View file

@ -21,10 +21,10 @@ spec:
hostPath: hostPath:
path: /data/home path: /data/home
type: type:
- name: gorilychrume #- name: gorilychrume
hostPath: # hostPath:
path: /data/gorilych.ru/me # path: /data/gorilych.ru/me
type: # type:
containers: containers:
- name: sshct - name: sshct
image: gorilych/sshct image: gorilych/sshct
@ -39,10 +39,10 @@ spec:
- containerPort: 22 - containerPort: 22
name: ssh name: ssh
volumeMounts: volumeMounts:
- mountPath: /home - mountPath: /home
name: home name: home
- mountPath: /home/www/me #- mountPath: /home/www/me
name: gorilychrume # name: gorilychrume
--- ---
kind: Service kind: Service
apiVersion: v1 apiVersion: v1