crowd部署yaml

明月清风 2020-07-27 35浏览 0条评论
首页/正文
分享到: / / / /

https://hub.docker.com/r/atlassian/crowd

破解补丁

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

apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: crowd
  name: crowd
  namespace: public-service
spec:
  selector:
    matchLabels:
      app: crowd
  template:
    metadata:
      labels:
        app: crowd
    spec:
      containers:
      - env:
        - 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: JVM_SUPPORT_RECOMMENDED_ARGS
          value: -javaagent:/opt/atlassian_agent/atlassian-agent.jar -Duser.language=zh_CN
        - name: TZ
          value: Asia/Shanghai
        image: atlassian/crowd:4.0.2
        imagePullPolicy: IfNotPresent
        livenessProbe:
          failureThreshold: 3
          httpGet:
            path: /crowd/console/login.action
            port: 8095
            scheme: HTTP
          initialDelaySeconds: 120
          periodSeconds: 10
          successThreshold: 1
          timeoutSeconds: 2
        name: crowd
        ports:
        - containerPort: 8095
          name: web
          protocol: TCP
        volumeMounts:
        #日志
        - mountPath: /opt/atlassian/crowd/logs/
          name: logs
          subPath: crowd/logs/
        #数据
        - mountPath: /var/atlassian/application-data/crowd/
          name: data
          subPath: crowd/data/
        #破解补丁
        - mountPath: /opt/atlassian_agent/
          name: atlassian-agent
          subPath: atlassian_agent/
      volumes:
      - flexVolume:
          driver: alicloud/nas
          options:
            options: nolock,tcp,noresvport
            path: /share
            server: nfs-server
            vers: "3"
        name: logs
      - 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
---
apiVersion: v1
kind: Service
metadata:
  labels:
    app: crowd
  name: crowd
  namespace: public-service
spec:
  ports:
  - name: web
    port: 8095
    protocol: TCP
    targetPort: 8095
  selector:
    app: crowd
  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: crowd
  namespace: public-service
spec:
  rules:
  - host: xxx.com
    http:
      paths:
      - backend:
          serviceName: crowd
          servicePort: 8095
        path: /
  tls:
  - secretName: xxx.com

 

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

上一篇

发表评论

评论列表

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