Deploy chat-ssl-proxy

Update deployment.yaml file with required values for SERVER_NAME,SERVICE_NAME, LOG_LEVEL and secretName

apiVersion: apps/v1
kind: Deployment
metadata:
  name: chat-ssl-proxy
  labels:
    app: chat-ssl-proxy
spec:
  replicas: 1
  selector:
    matchLabels:
      app: chat-ssl-proxy
  template:
    metadata:
      labels:
        app: chat-server-ssl-proxy
    spec:
      imagePullSecrets:
        - name: highside-read-only-pull-secret
      containers:
        - name: nginx
          image: quay.io/nginx-ssl-proxy:v2.2
          imagePullPolicy: Always
          env:
            - name: SERVER_NAME
              value: "chatserver.domain.com"
            - name: TARGET_SERVICE
              value: "chat-server.highside:8080"
            - name: LOG_LEVEL
              value: "info"
          volumeMounts:
            - name: ssl-keys
              readOnly: true
              mountPath: "/etc/secrets"
          ports:
            - containerPort: 443
      volumes:
        - name: ssl-keys
          secret:
            secretName: ssl-key-secret
---
apiVersion: v1
kind: Service
metadata:
  labels:
    app: chat-ssl-proxy
  name: chat-ssl-proxy
  annotations:
  ## This section is usually used to configure your L7 LB settings. Showing internal LB examples here:
  ## AWS Internal LB
  #  service.beta.kubernetes.io/aws-load-balancer-internal: "true"
  ## Azure Internal LB
  #  service.beta.kubernetes.io/azure-load-balancer-internal: "true"
  ## GCE Internal LB
  #  cloud.google.com/load-balancer-type: "Internal"
spec:
  type: LoadBalancer
  ## To specify a fixed IP if your cloud provider supports it
  #  loadBalancerIP: 10.0.0.1
  ports:
    - name: chat-ssl-proxy-port
      port: 443
      protocol: TCP
      targetPort: 443
  selector:
    app: chat-ssl-proxy

Deploy chat-ssl-proxy

Last updated