confluence部署yaml

明月清风 23浏览 0条评论
首页/正文
分享到: / / / /

 

https://hub.docker.com/r/atlassian/confluence-server

破解补丁

https://gitee.com/pengzhile/atlassian-agent

apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: confluence
  name: confluence
  namespace: public-service
spec:
  selector:
    matchLabels:
      app: confluence
  template:
    metadata:
      labels:
        app: confluence
    spec:
      containers:
      - env:
        #添加java参数指定agent,为破解补丁
        - name: JVM_SUPPORT_RECOMMENDED_ARGS
          value: -javaagent:/opt/atlassian_agent/atlassian-agent.jar
        - name: ATL_PROXY_NAME
          value: xxx.com
        - name: ATL_PROXY_PORT
          value: "443"
        - name: ATL_TOMCAT_SCHEME
          value: https
        - name: ATL_TOMCAT_SECURE
          value: "true"
        - name: ATL_CLUSTER_TYPE
          value: "multicast"
        - name: ATL_CLUSTER_NAME
          value: "confluence"
        image: atlassian/confluence-server:7.4.1
        imagePullPolicy: IfNotPresent
        livenessProbe:
          failureThreshold: 3
          initialDelaySeconds: 300
          periodSeconds: 10
          successThreshold: 1
          tcpSocket:
            port: 8090
          timeoutSeconds: 30
        name: confluence
        ports:
        - containerPort: 8090
          name: web
          protocol: TCP
        - containerPort: 8091
          name: api
          protocol: TCP
        volumeMounts:
        #数据持久化
        - mountPath: /var/atlassian/application-data/confluence/
          name: data
          subPath: shared-home/
        #破解补丁路径
        - mountPath: /opt/atlassian_agent/
          name: atlassian-agent
          subPath: atlassian_agent/
        #缓存不支持NFS系统,指定使用硬盘PVC
        - mountPath: /var/atlassian/application-data/confluence/index
          name: confluence-index
          subPath: index/
      volumes:
      - flexVolume:
          driver: alicloud/nas
          options:
            options: nolock,tcp,noresvport
            path: /share
            server: nfs-server
            vers: "3"
        name: data
      - flexVolume:
          driver: alicloud/nas
          options:
            options: nolock,tcp,noresvport
            path: /share
            server: nfs-server
            vers: "3"
        name: atlassian-agent
      - name: confluence-index
        persistentVolumeClaim:
          claimName: confluence-index
---
apiVersion: v1
kind: Service
metadata:
  labels:
    app: confluence
  name: confluence
  namespace: public-service
spec:
  ports:
  - name: web
    port: 8090
    protocol: TCP
    targetPort: 8090
  selector:
    app: confluence
  type: ClusterIP
---
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  annotations:
    nginx.ingress.kubernetes.io/proxy-body-size: 200m
    nginx.ingress.kubernetes.io/ssl-redirect: "true"
  name: confluence
  namespace: public-service
spec:
  rules:
  - host: xxx.com
    http:
      paths:
      - backend:
          serviceName: confluence
          servicePort: 8090
        path: /
  tls:
  - secretName: xxx.com

 

最后修改: © 著作权归作者所有
如果觉得我的文章对你有用,请随意赞赏
扫一扫支付

上一篇

发表评论

评论列表

还没有人评论哦~赶快抢占沙发吧~