|
@@ -33,3 +33,47 @@ spec:
|
|
port: $JNLP_CONTAINER_PORT
|
|
port: $JNLP_CONTAINER_PORT
|
|
initialDelaySeconds: $JNLP_READINESS_INIT
|
|
initialDelaySeconds: $JNLP_READINESS_INIT
|
|
periodSeconds: $JNLP_READINESS_PER
|
|
periodSeconds: $JNLP_READINESS_PER
|
|
|
|
+-------------
|
|
|
|
+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: networking.k8s.io/v1
|
|
|
|
+kind: Ingress
|
|
|
|
+metadata:
|
|
|
|
+ name: $DRONE_REPO_NAME-ingress
|
|
|
|
+ namespace: $JNLP_ENV
|
|
|
|
+spec:
|
|
|
|
+ ingressClassName: nginx
|
|
|
|
+ rules:
|
|
|
|
+ - host: $JNLP_ENV-$DRONE_REPO_NAME$JNLP_DOMAIN
|
|
|
|
+ http:
|
|
|
|
+ paths:
|
|
|
|
+ - path: /
|
|
|
|
+ pathType: ImplementationSpecific
|
|
|
|
+ backend:
|
|
|
|
+ service:
|
|
|
|
+ name: $DRONE_REPO_NAME-svc
|
|
|
|
+ port:
|
|
|
|
+ number: $JNLP_CONTAINER_PORT
|
|
|
|
+ - host: svadv.easou.com
|
|
|
|
+ http:
|
|
|
|
+ paths:
|
|
|
|
+ - path: /
|
|
|
|
+ pathType: ImplementationSpecific
|
|
|
|
+ backend:
|
|
|
|
+ service:
|
|
|
|
+ name: $DRONE_REPO_NAME-svc
|
|
|
|
+ port:
|
|
|
|
+ number: $JNLP_CONTAINER_PORT
|