preface

Micro service recently left a legacy system, technical system but because the team did not keep up with the container, this has not taken a step, so that when a dozen jars of system for half a month to realize this is resist, once again proved that sentence structure to refactor is actually team of technical system, This week finally all the services into a mirror, the next step is the K8S dynamic expansion. The configuration center as the core of the system underlying services in the container encountered some problems, summarized here for future generations.

Configuration Center Introduction

What is a SpringConfig

Configuration mode

Containerization

Self-built way

Use of plug-ins

configuration

Begin to build

Container startup





Off-the-shelf mirror

The direct image is relatively simple. You can download the image directly.

conclusion

1. SpringConfig, as one of the underlying core services of The SpringCloud system, needs different configurations in the process of containerization due to different configuration modes. 2. Pay attention to the difference between the test service and the container account. {user.dir} of the common user is different from that of the root user. 3. Micro-service is not a panacea. It requires a lot of technical accumulation and preparation.