This commit is contained in:
Matthos Denys 2021-03-07 18:13:49 +03:00
parent 38c35f3cf1
commit 1b3d8c2bc6
8 changed files with 10 additions and 15 deletions

4
run.sh
View File

@ -15,9 +15,7 @@ kubectl apply -f srcs/yaml/metallb.yaml
kubectl apply -f srcs/yaml/nginx_service.yaml
kubectl apply -f srcs/yaml/mariadb.yaml
kubectl apply -f srcs/yaml/phpsvc.yaml
kubectl apply -f srcs/yaml/ftps.yaml
kubectl apply -f srcs/yaml/wp.yaml
kubectl apply -f srcs/yaml/ftps.yaml
echo "Minikube IP: ${IP}"
# sh minikubenewpc.sh sh ~/Desktop/ft_services/run.sh

View File

@ -11,6 +11,6 @@ seccomp_sandbox=NO
rsa_cert_file=/etc/ssl/certs/vsftpd.crt
rsa_private_key_file=/etc/ssl/private/vsftpd.key
ssl_enable=YES
pasv_address=192.168.99.150
pasv_address=192.168.99.100
pasv_min_port=30020
pasv_max_port=30021

View File

@ -11,5 +11,5 @@ COPY supervisord.conf /etc/supervisord.conf
COPY start.sh .
RUN chmod +x start.sh
EXPOSE 5050
CMD ["/start.sh"]
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisord.conf"]
ENTRYPOINT sh start.sh

View File

@ -2,6 +2,7 @@
openrc default
/etc/init.d/mariadb setup
rc-service mariadb start
/usr/bin/mysqld_safe &
# curl -O https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar
# chmod +x wp-cli.phar
# mv wp-cli.phar /usr/local/bin/wp

View File

@ -26,8 +26,6 @@ spec:
selector:
app: ftps
type: LoadBalancer
externalIPs:
- "192.168.99.150"
---
apiVersion: apps/v1
kind: Deployment

View File

@ -34,7 +34,7 @@ spec:
resources:
limits:
memory: "128Mi"
cpu: "500m"
cpu: "100m"
imagePullPolicy: Never
ports:
- containerPort: 3306

View File

@ -9,4 +9,4 @@ data:
- name: default
protocol: layer2
addresses:
- 192.168.99.150-192.168.99.200
- 192.168.99.100-192.168.99.200

View File

@ -12,8 +12,6 @@ spec:
targetPort: 5050
selector:
app: wp
externalIPs:
- "192.168.99.150"
---
apiVersion: apps/v1
kind: Deployment
@ -57,11 +55,11 @@ metadata:
spec:
storageClassName: manual
capacity:
storage: 800Mi
storage: 500Mi
accessModes:
- ReadWriteOnce
hostPath:
path: "/var/www/"
path: "/var/www/localhost/htdocs/"
claimRef:
name: wp-pvc
---
@ -76,4 +74,4 @@ spec:
- ReadWriteOnce
resources:
requests:
storage: 800Mi
storage: 500Mi