Giter Site home page Giter Site logo

settler / teamcity-agent-openvpn Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 5 KB

A TeamCity Agent powered by OpenVPN client connection

Home Page: https://cloud.docker.com/repository/docker/settler/teamcity-agent-openvpn

Dockerfile 48.12% Shell 51.88%
teamcity-agent openvpn openvpn-client kubernetes k8s

teamcity-agent-openvpn's Introduction

teamcity-agent-openvpn

Allow TeamCity Agent connect via secured VPN tunnel to TeamCity server.

Based on https://hub.docker.com/r/jetbrains/teamcity-agent/ image.

How to Use This Image

docker run -it -e SERVER_URL="<url to TeamCity server>"  \
    --cap-add NET_ADMIN \
    -v <path to agent config folder>:/data/teamcity_agent/conf  \
    -v <path to client.ovpn file>:/etc/openvpn/client.ovpn  \
    settler/teamcity-agent-openvpn

How to Use This Image in Kubernetes

kubectl apply -f teamcity-agent-openvpn.yaml

teamcity-agent-openvpn.yaml:

apiVersion: v1
kind: ConfigMap
metadata:
  name: teamcity-agent
  labels:
    app: teamcity-agent
data:
  client.ovpn: |
    ##############################################
    # Sample client-side OpenVPN 2.0 config file #
    # for connecting to multi-client server.     #
    #                                            #
    # This configuration can be used by multiple #
    # clients, however each client should have   #
    # its own cert and key files.                #
    #                                            #
    # On Windows, you might want to rename this  #
    # file so it has a .ovpn extension           #
    ##############################################

    # Here you should define your config data indented to 4 spaces

---
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  name: teamcity-agent
spec:
  replicas: 1
  template:
    metadata:
      labels:
        app: teamcity-agent
    spec:
      containers:
      - name: teamcity-agent
        image: settler/teamcity-agent-openvpn:latest
        securityContext:
          capabilities:
            add:
              - NET_ADMIN
        env:
        - name: SERVER_URL
          value: <url to TeamCity server>
        - name: AGENT_NAME
          value: vpn_agent
        volumeMounts:
        - name: agent-conf
          mountPath: /data/teamcity_agent/conf
        - name: client-ovpn
          mountPath: /etc/openvpn/client.ovpn
          subPath: client.ovpn
          readOnly: true
        resources:
          requests:
            memory: "512Mi"
            cpu: "50m"
          limits:
            memory: "1Gi"
            cpu: "200m"
      volumes:
        - name: agent-conf
          emptyDir: {}
        - name: client-ovpn
          configMap:
            name: teamcity-agent

teamcity-agent-openvpn's People

Contributors

flexo-maksim avatar settler avatar

Watchers

 avatar  avatar

Forkers

flexo45

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.