I've been free for a while. (I forgot to put it together)
Container usage scene learned from Java utilization
Containers have a history --It's getting k8s more than Docker.
What is microservice for? ――To be competitive with competitors —— Acceptable and unacceptable --Repeated improvement --Minimization of impact --Canary release
Docker can be used from Windows Server 2016 TP3.
Dev/Ops --If you want to touch the container, you need to know both
Container ――You should try to make the image as small as possible.
open-jdk --Azul Systems zulu can be used.
Not enough features with docker alone --Not suitable for redundant configurations (difficult to express in complex configurations)
docker security
Is docker-compose unnecessary? ――If you have a complicated system (such as having multiple services), docker-compose will be annoying. ――So, if it's simple, docker-compose is fine, but I'm pressing k8s.
Do I have to consider the operating environment during production operation? ――I have to do it. --You have to design the container so that it doesn't eat up all your resources.
Not everything is suitable for containers ――It is suitable for things that scale out. --Not suitable for items that require scale-up. ――After all, it's better to contact directly because you're just borrowing.
For Azure
--Can you filter by the labels attribute of the yaml file? --You can operate the pod.
--p.52 apply requires -f --Running on p.58 is 12-Ingress.yaml
Notes on containers --Do not use the latest tag. --Add build-id to the tag. ――Try to create a small image. --Alpine is the lightest in openjdk. --Set user permissions. ――I don't believe the image of Docker Hub unnecessarily. --Check security before using! --Create a docker file in a way that cache works.
k8s
Recommended Posts