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/nginx_service.yaml
kubectl apply -f srcs/yaml/mariadb.yaml kubectl apply -f srcs/yaml/mariadb.yaml
kubectl apply -f srcs/yaml/phpsvc.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/wp.yaml
kubectl apply -f srcs/yaml/ftps.yaml
echo "Minikube IP: ${IP}" 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_cert_file=/etc/ssl/certs/vsftpd.crt
rsa_private_key_file=/etc/ssl/private/vsftpd.key rsa_private_key_file=/etc/ssl/private/vsftpd.key
ssl_enable=YES ssl_enable=YES
pasv_address=192.168.99.150 pasv_address=192.168.99.100
pasv_min_port=30020 pasv_min_port=30020
pasv_max_port=30021 pasv_max_port=30021

View File

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

View File

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

View File

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

View File

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

View File

@ -9,4 +9,4 @@ data:
- name: default - name: default
protocol: layer2 protocol: layer2
addresses: 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 targetPort: 5050
selector: selector:
app: wp app: wp
externalIPs:
- "192.168.99.150"
--- ---
apiVersion: apps/v1 apiVersion: apps/v1
kind: Deployment kind: Deployment
@ -57,11 +55,11 @@ metadata:
spec: spec:
storageClassName: manual storageClassName: manual
capacity: capacity:
storage: 800Mi storage: 500Mi
accessModes: accessModes:
- ReadWriteOnce - ReadWriteOnce
hostPath: hostPath:
path: "/var/www/" path: "/var/www/localhost/htdocs/"
claimRef: claimRef:
name: wp-pvc name: wp-pvc
--- ---
@ -76,4 +74,4 @@ spec:
- ReadWriteOnce - ReadWriteOnce
resources: resources:
requests: requests:
storage: 800Mi storage: 500Mi