Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

x-forwarded-for is not working #301

Closed
Justluckyg opened this issue Feb 15, 2019 · 1 comment
Closed

x-forwarded-for is not working #301

Justluckyg opened this issue Feb 15, 2019 · 1 comment

Comments

@Justluckyg
Copy link

Justluckyg commented Feb 15, 2019

we have haproxy-ingress as our ingress controller in gke and we cant get the x-forwarded-for add working, this is a sample of our configmap

apiVersion: v1
metadata:
  name: haproxy-ingress
  namespace: haproxy-ingress
  labels:
    k8s-addon: ingress-nginx.addons.k8s.io
data:
  ssl-ciphers: EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH
  ssl-dh-param: haproxy-ingress/lb-dhparam
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
  labels:
    run: haproxy-ingress
  name: haproxy-ingress
  namespace: haproxy-ingress
spec:
  replicas: 1
  selector:
    matchLabels:
      app: haproxy-ingress
  template:
    metadata:
      labels:
        app: haproxy-ingress
    spec:
      nodeSelector:
        web: "true"
      containers:
      - name: haproxy-ingress
        image: quay.io/jcmoraisjr/haproxy-ingress
        args:
        - --default-backend-service=haproxy-ingress/ingress-default-backend
        - --default-ssl-certificate=default/tls-secret
        - --configmap=haproxy-ingress/haproxy-ingress
        ports:
        - name: http
          containerPort: 80
        - name: https
          containerPort: 443
        - name: stat
          containerPort: 1936
        readinessProbe:
          initialDelaySeconds: 15
          periodSeconds: 5
          timeoutSeconds: 1
          successThreshold: 2
          failureThreshold: 2
          tcpSocket:
            port: 80
        env:
        - name: POD_NAME
          valueFrom:
            fieldRef:
              fieldPath: metadata.name
        - name: POD_NAMESPACE
          valueFrom:
            fieldRef:
              fieldPath: metadata.namespace
@Justluckyg Justluckyg changed the title x-forwarded-for x-forwarded-for is not working Feb 15, 2019
@Justluckyg
Copy link
Author

Did this jetstack/kube-lego#57 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant