# ======================================================================== # Secret: CodeTogether License Values # ======================================================================== apiVersion: v1 kind: Secret metadata: name: codetogether-license namespace: default type: Opaque stringData: # Configure as needed for your deployment, should match your SSL certificate CT_SERVER_URL: "https://SERVERFQDN" CT_TRUST_ALL_CERTS: "true" # Provided by your Genuitec Sales Representative # *values must match exactly CT_LICENSEE: "Your Company" CT_MAXCONNECTIONS: "0" CT_EXPIRATION: "2020/01/01" CT_SIGNATURE: "xXM3awzG...619bef4" --- # ======================================================================== # Secret: SSL Key and Certificate for SSL used by Ingress # ======================================================================== apiVersion: v1 kind: Secret metadata: name: codetogether-sslsecret namespace: default type: kubernetes.io/tls data: # value from "cat ssl.crt | base64 -w 0" tls.crt: "LS0tLS1CRUdJTi...UZJQ0FURS0tLS0tDQo=" # value from "cat ssl.key | base64 -w 0" tls.key: "LS0tLS1CRUdJTi...EUgS0VZLS0tLS0NCg==" --- # ======================================================================== # Ingress: Expose the HTTPS service to the network # ======================================================================== apiVersion: networking.k8s.io/v1beta1 kind: Ingress metadata: name: codetogether spec: tls: - hosts: - SERVERFQDN secretName: codetogether-sslsecret rules: - host: SERVERFQDN http: paths: - path: / backend: serviceName: codetogether servicePort: 80 --- # ======================================================================== # Service: Map the HTTP port from the container # ======================================================================== apiVersion: v1 kind: Service metadata: name: codetogether labels: run: codetogether spec: ports: - port: 80 name: http targetPort: 1080 protocol: TCP selector: run: codetogether --- # ======================================================================== # Deployment: Configure the Container Deployment # ======================================================================== apiVersion: apps/v1 kind: Deployment metadata: name: codetogether namespace: default spec: selector: matchLabels: run: codetogether replicas: 1 template: metadata: labels: run: codetogether spec: containers: - name: codetogether image: hub.edge.codetogether.com/latest/codetogether:latest imagePullPolicy: Always ports: - containerPort: 1080 env: - name: CT_LOCATOR value: "none" - name: CT_SERVER_URL valueFrom: secretKeyRef: name: codetogether-license key: CT_SERVER_URL - name: CT_TRUST_ALL_CERTS valueFrom: secretKeyRef: name: codetogether-license key: CT_TRUST_ALL_CERTS - name: CT_LICENSEE valueFrom: secretKeyRef: name: codetogether-license key: CT_LICENSEE - name: CT_MAXCONNECTIONS valueFrom: secretKeyRef: name: codetogether-license key: CT_MAXCONNECTIONS - name: CT_EXPIRATION valueFrom: secretKeyRef: name: codetogether-license key: CT_EXPIRATION - name: CT_SIGNATURE valueFrom: secretKeyRef: name: codetogether-license key: CT_SIGNATURE imagePullSecrets: - name: ctcreds