mirror of
https://github.com/amkartashov/gf-k8s.git
synced 2026-01-11 09:59:43 +00:00
reworked static website at gorilych.ru
This commit is contained in:
parent
3922ae6621
commit
9146b679f5
2 changed files with 25 additions and 27 deletions
|
|
@ -16,25 +16,24 @@ spec:
|
|||
app: gorilychru
|
||||
spec:
|
||||
volumes:
|
||||
- name: gorilychrume
|
||||
- name: gorilychru
|
||||
hostPath:
|
||||
path: /data/gorilych.ru/me
|
||||
type:
|
||||
- name: nginxdefaultconf
|
||||
hostPath:
|
||||
path: /data/gorilych.ru/nginx.vh.default.conf
|
||||
type:
|
||||
path: /data/home/www/gorilych.ru
|
||||
type: Directory
|
||||
#- name: nginxdefaultconf
|
||||
# hostPath:
|
||||
# path: /data/gorilych.ru/nginx.vh.default.conf
|
||||
containers:
|
||||
- name: gorilychrume
|
||||
- name: gorilychru
|
||||
image: nginx:alpine
|
||||
ports:
|
||||
- containerPort: 80
|
||||
name: gorilychrume
|
||||
name: gorilychru
|
||||
volumeMounts:
|
||||
- mountPath: /usr/share/nginx/html/me
|
||||
name: gorilychrume
|
||||
- mountPath: /etc/nginx/conf.d/default.conf
|
||||
name: nginxdefaultconf
|
||||
- mountPath: /usr/share/nginx/html
|
||||
name: gorilychru
|
||||
#- mountPath: /etc/nginx/conf.d/default.conf
|
||||
# name: nginxdefaultconf
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
|
|
@ -44,10 +43,10 @@ spec:
|
|||
selector:
|
||||
app: gorilychru
|
||||
ports:
|
||||
- name: gorilychrume
|
||||
- name: gorilychru
|
||||
protocol: TCP
|
||||
port: 81
|
||||
targetPort: gorilychrume
|
||||
port: 80
|
||||
targetPort: gorilychru
|
||||
---
|
||||
apiVersion: extensions/v1beta1
|
||||
kind: Ingress
|
||||
|
|
@ -64,8 +63,7 @@ spec:
|
|||
- host: gorilych.ru
|
||||
http:
|
||||
paths:
|
||||
- path: /me
|
||||
backend:
|
||||
- backend:
|
||||
serviceName: gorilychru
|
||||
servicePort: 81
|
||||
servicePort: 80
|
||||
|
||||
|
|
|
|||
12
sshct.yaml
12
sshct.yaml
|
|
@ -21,10 +21,10 @@ spec:
|
|||
hostPath:
|
||||
path: /data/home
|
||||
type:
|
||||
- name: gorilychrume
|
||||
hostPath:
|
||||
path: /data/gorilych.ru/me
|
||||
type:
|
||||
#- name: gorilychrume
|
||||
# hostPath:
|
||||
# path: /data/gorilych.ru/me
|
||||
# type:
|
||||
containers:
|
||||
- name: sshct
|
||||
image: gorilych/sshct
|
||||
|
|
@ -41,8 +41,8 @@ spec:
|
|||
volumeMounts:
|
||||
- mountPath: /home
|
||||
name: home
|
||||
- mountPath: /home/www/me
|
||||
name: gorilychrume
|
||||
#- mountPath: /home/www/me
|
||||
# name: gorilychrume
|
||||
---
|
||||
kind: Service
|
||||
apiVersion: v1
|
||||
|
|
|
|||
Loading…
Reference in a new issue