huanghongfa
2021-02-01 4e0b5577524307c908e75312d37c991c9877b8d8
applets-bacekstage
1个文件已添加
2个文件已修改
54 ■■■■■ 已修改文件
springcloud_k8s_panzhihuazhihuishequ/.idea/workspace.xml 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/applets_backstage/src/main/resources/bootstrap.yml 1 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/deploy-file/applets-backstage.yaml 47 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
springcloud_k8s_panzhihuazhihuishequ/.idea/workspace.xml
@@ -23,9 +23,9 @@
  </component>
  <component name="ChangeListManager">
    <list default="true" id="8ba27629-3e5d-4f42-993e-d0c055bc9371" name="Default Changelist" comment="">
      <change afterPath="$PROJECT_DIR$/deploy-file/applets-backstage.yaml" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/applets/src/main/resources/bootstrap.yml" beforeDir="false" afterPath="$PROJECT_DIR$/applets/src/main/resources/bootstrap.yml" afterDir="false" />
      <change beforePath="$PROJECT_DIR$/zuul/src/main/resources/application-prod.yml" beforeDir="false" />
      <change beforePath="$PROJECT_DIR$/applets_backstage/src/main/resources/bootstrap.yml" beforeDir="false" afterPath="$PROJECT_DIR$/applets_backstage/src/main/resources/bootstrap.yml" afterDir="false" />
    </list>
    <option name="SHOW_DIALOG" value="false" />
    <option name="HIGHLIGHT_CONFLICTS" value="true" />
@@ -413,7 +413,7 @@
      <workItem from="1611834131869" duration="1431000" />
      <workItem from="1611883117467" duration="13328000" />
      <workItem from="1611913457874" duration="966000" />
      <workItem from="1612141547518" duration="20992000" />
      <workItem from="1612141547518" duration="21576000" />
    </task>
    <servers />
  </component>
springcloud_k8s_panzhihuazhihuishequ/applets_backstage/src/main/resources/bootstrap.yml
@@ -7,6 +7,7 @@
        enabled: true
        service-id: config  # 注册中心的服务名
      profile: prod  # 指定配置文件的环境
      uri: http://${CONFIG_URL:localhost}:8193/
  profiles:
    active: prod
  servlet:
springcloud_k8s_panzhihuazhihuishequ/deploy-file/applets-backstage.yaml
New file
@@ -0,0 +1,47 @@
---
apiVersion: apps/v1
kind: Deployment
metadata:
  name: applets-backstage
spec:
  selector:
    matchLabels:
      app: springcloud-applets-backstage
  replicas: 3
  template:
    metadata:
      labels:
        app: springcloud-applets-backstage
    spec:
      containers:
        - name: applets-instance
          image: registry.cn-chengdu.aliyuncs.com/panzhihua/applets_backstage:v1
          imagePullPolicy: Always
          env:
            - name: EUREKA_URL
              value: eureka-server
            - name: CONFIG_URL
              value: config-server
          ports:
            - containerPort: 8197
      imagePullSecrets:
        - name: hhf
---
kind: Service
apiVersion: v1
metadata:
  name: service-applets-backstage
spec:
  selector:
    app: springcloud-applets-backstage
  ports:
    - protocol: TCP
      port: 8195
      targetPort: 8195
  #type: NodePort