Ref: How to set up a local Knative environment with KinD and without DNS headaches
https://knative.dev/docs/client/install-kn/
https://github.com/knative-extensions/kn-plugin-quickstart
copy a file from local filesystem into a container:
cat [local file path] | kubectl exec -i -n [namespace] [pod] -c [container] "--" sh -c "cat > [remote file path]"
ex:
cat keycloak-benchmark-dataset-0.10-SNAPSHOT.jar | k exec -i pods/keycloak-65f866dc7b-2kpn5 "--" sh -c "cat > /opt/keycloak/providers/keycloak-benchmark-dataset-0.10-SNAPSHOT.jar"
sudo fdisk -l
確認是否已經DISK空間是否擴增。sudo fdisk /dev/sda
[root@localhost ~]# fdisk /dev/sda Welcome to fdisk (util-linux 2.23.2).
Changes will remain in memory only, until you decide to write them. Be careful before using the write command.
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon
with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.
Seven Rules for Sound Documentation
########################################################################################
Task 1: Download the monolith code and build your container
git clone https://github.com/googlecodelabs/monolith-to-microservices.git
cd ~/monolith-to-microservices
./setup.sh
microk8s enable dns rbac storage
FROM adoptopenjdk/openjdk14-openj9:x86_64-alpine-jre-14_36.1_openj9-0.19.0 | |
RUN apk add curl | |
ENV QUARKUS_LAUNCH_DEVMODE=true \ | |
JAVA_ENABLE_DEBUG=true | |
COPY target/quarkus-app/lib/ /deployments/lib/ | |
COPY target/quarkus-app/*.jar /deployments/ | |
COPY target/quarkus-app/app/ /deployments/app/ | |
COPY target/quarkus-app/quarkus/ /deployments/quarkus/ |