Kubernetes部署服务
基本流程为: 做image 并且push到private registry 创建replication controller 创建service 搭建nginx代理 测试 下面详述: 1. 制作image java基础image: FROM dockerimages.yinnut.com:15043/centos:7 MAINTAINER xuelun-infra morgan.wu@yinnnut.com ADD jdk-8u60-linux-x64.tar.gz /usr/local/ ENV JAVA_HOME /usr/local/jdk1.8.0_60 ENV PATH $JAVA_HOME/bin:$PATH Friend-Service镜像: FROM dockerimages.yinnut.com:15043/yinnut-java:0.1 MAINTAINER xuelun-infra morgan.wu@yinnnut.com ADD FriendService.war / ADD jetty-runner.jar / WORKDIR / VOLUME ["/var/log"] 2. 创建Replication Controller rc.yaml文件, 创建了2个friend的pod,设置replicas为2 apiVersion: v1 kind: