Category: Rancher
-
Post Views: 16 1. At this stage, there are 4 Rancher environment variables (the default value is not set, it must be set), and its value includes the public part: dev.xxx.cn 2. In the new stage, update 4 Rancher environment variables (the default value has been set, and there is no need to set it). Add a new environment variable…
-
Post Views: 18 1. The current domain name is: ccpapi.xxx.cn. It can be called normally on the external network. as shown in Figure 1 2. The current Rancher configuration, load balancing. as shown in Figure 2 3. In Konga, Services – Add New Service. name: API_CCP . url:http://api.ccp:82. Fill in these 2 fields only. submit. as shown in Figure 3…
-
Post Views: 19 1. Two items, front and back end, two images, two containers. as shown in Figure 1 2. The front-end builds the directory structure. as shown in Figure 2 3. Interface construction directory structure. as shown in Figure 3 4. Relevant configuration of front-end construction. as shown in Figure 4 5. Relevant configuration of interface construction. as shown…
-
Post Views: 17 1. In K8s, the container has no restart options, as shown in Figure 1 2. In non-K8s, the container has a restart option, modify the php file before, and the container will automatically take effect after restarting. as shown in Figure 2 3. Edit the php file and output some information, as shown in Figure 3 4.…
-
Post Views: 15 1. When upgrading the container in Rancher, an error is reported: channel_pub_api_cfg_app_avatar_upload_path: unbound variable. as shown in Figure 1 2. View the file: /config/init/config0.sh. 3. Even in Rancher Add environment variables: channel_pub_api_cfg_app_avatar_upload_path_url, channel_pub_api_cfg_app_avatar_upload_path . The same error is still reported. as shown in Figure 2 4. Assign the environment variable in Rancher: channel_pub_api_cfg_app_avatar_upload_path A specific value. The…
-
Post Views: 23 1. At this stage, there is a new requirement, and it is necessary to do some initial data work for the product when deploying the product. Prepare the corresponding SQL file, but for the file path in the MySQL table: /upload/20200817/20203555555373.png. It is stored in NAS storage. rather than the program directory. as shown in Figure 1…
-
Post Views: 15 1. Enter the container that the environment variable has been replaced, a configuration file, which is in line with expectations. as shown in Figure 1 2. Enter a container that has not been replaced with an environment variable, and a configuration file does not meet the expectations. as shown in Figure 2 3. View the logs of…
-
Post Views: 15 1. In Rancher’s volume, add: /webtv:/data. as shown in Figure 1 2. Check the log of the container, and report an error: log_name: unbound variable. as shown in Figure 2 3. Enter the container and view the directory list under /data, which does not meet the expectations. Not mounted successfully. as shown in Figure 3 4. In…
-
Post Views: 50 1. The content of the Dockerfile is as follows 2. Since there are directories in the basic image: /sobey/www, and it is a blank directory, it is no longer needed. The basic image cannot be upgraded for a while, so I decided to delete the folder in the Dockerfile: /sobey. as shown in Figure 1 3. Add…