123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167 |
- ---
- apiVersion: apps/v1
- kind: $JNLP_CONTROL
- metadata:
- name: $DRONE_REPO_NAME
- namespace: $JNLP_ENV
- labels:
- app: $DRONE_REPO_NAME
- spec:
- serviceName: $DRONE_REPO_NAME
- replicas: $JNLP_REPLICAS
- selector:
- matchLabels:
- app: $DRONE_REPO_NAME
- template:
- metadata:
- labels:
- app: $DRONE_REPO_NAME
- spec:
- terminationGracePeriodSeconds: 180
- initContainers:
- - name: init
- image: $JNLP_REPO/dev/busybox
- command: ["chmod","777","-R","$JNLP_MOUNT_PATH"]
- imagePullPolicy: Always
- volumeMounts:
- - name: volume
- mountPath: $JNLP_MOUNT_PATH
- containers:
- - name: $DRONE_REPO_NAME
- image: $JNLP_REPO/$JNLP_ENV/$DRONE_REPO_NAME:$JNLP_TAG
- imagePullPolicy: Always
- ports:
- - containerPort: $JNLP_CONTAINER_PORT
- name: port
- volumeMounts:
- - name: volume
- mountPath: $JNLP_MOUNT_PATH
- livenessProbe:
- tcpSocket:
- port: $JNLP_CONTAINER_PORT
- initialDelaySeconds: $JNLP_LIVENESS_INIT
- periodSeconds: $JNLP_LIVENESS_PER
- readinessProbe:
- tcpSocket:
- port: $JNLP_CONTAINER_PORT
- initialDelaySeconds: $JNLP_READINESS_INIT
- periodSeconds: $JNLP_READINESS_PER
- volumeClaimTemplates:
- - metadata:
- name: volume
- spec:
- accessModes: ["ReadWriteOnce"]
- storageClassName: rbd
- resources:
- requests:
- storage: $JNLP_STORAGE_CAPACITY
- ---
- apiVersion: v1
- kind: Service
- metadata:
- name: $DRONE_REPO_NAME-svc
- namespace: $JNLP_ENV
- labels:
- app: $DRONE_REPO_NAME-svc
- spec:
- type: NodePort
- ports:
- - port: $JNLP_CONTAINER_PORT
- targetPort: $JNLP_CONTAINER_PORT
- selector:
- app: $DRONE_REPO_NAME
- ---
- apiVersion: extensions/v1beta1
- kind: Ingress
- metadata:
- name: $DRONE_REPO_NAME-ingress
- namespace: $JNLP_ENV
- annotations:
- kubernetes.io/ingress.class: $JNLP_INGRESS
- spec:
- rules:
- - host: www.easou.cn
- http:
- paths:
- - path: /
- backend:
- serviceName: $JNLP_CONTROL_NAME-svc
- servicePort: $JNLP_CONTAINER_PORT
- - host: wap.easou.cn
- http:
- paths:
- - path: /
- backend:
- serviceName: $JNLP_CONTROL_NAME-svc
- servicePort: $JNLP_CONTAINER_PORT
- - host: easou.cn
- http:
- paths:
- - path: /
- backend:
- serviceName: $JNLP_CONTROL_NAME-svc
- servicePort: $JNLP_CONTAINER_PORT
- - host: a.easou.cn
- http:
- paths:
- - path: /
- backend:
- serviceName: $JNLP_CONTROL_NAME-svc
- servicePort: $JNLP_CONTAINER_PORT
- - host: www.appeasou.com
- http:
- paths:
- - path: /
- backend:
- serviceName: $JNLP_CONTROL_NAME-svc
- servicePort: $JNLP_CONTAINER_PORT
- - host: wap.appeasou.com
- http:
- paths:
- - path: /
- backend:
- serviceName: $JNLP_CONTROL_NAME-svc
- servicePort: $JNLP_CONTAINER_PORT
- - host: appeasou.com
- http:
- paths:
- - path: /
- backend:
- serviceName: $JNLP_CONTROL_NAME-svc
- servicePort: $JNLP_CONTAINER_PORT
- - host: a.appeasou.com
- http:
- paths:
- - path: /
- backend:
- serviceName: $JNLP_CONTROL_NAME-svc
- servicePort: $JNLP_CONTAINER_PORT
- - host: www.easou.com
- http:
- paths:
- - path: /
- backend:
- serviceName: $JNLP_CONTROL_NAME-svc
- servicePort: $JNLP_CONTAINER_PORT
- - host: wap.easou.com
- http:
- paths:
- - path: /
- backend:
- serviceName: $JNLP_CONTROL_NAME-svc
- servicePort: $JNLP_CONTAINER_PORT
- - host: easou.com
- http:
- paths:
- - path: /
- backend:
- serviceName: $JNLP_CONTROL_NAME-svc
- servicePort: $JNLP_CONTAINER_PORT
- - host: a.easou.com
- http:
- paths:
- - path: /
- backend:
- serviceName: $JNLP_CONTROL_NAME-svc
- servicePort: $JNLP_CONTAINER_PORT
|