google-kubernetes-engine

How to restore original client IP from Cloudflare with NGINX ingress controller

一曲冷凌霜 提交于 2020-12-07 05:04:20
问题 I'm using Cloudflare as CDN and it's hiding the real IP address for the clients I'm using an NGINX ingress controller as a loadbalancer running in Google Kubernetes engine So I'm trying to restore the original IP address and trying to follow this link https://support.cloudflare.com/hc/en-us/articles/200170706-How-do-I-restore-original-visitor-IP-with-Nginx- How can I implement this in the configmap for my Nginx ingress since I need multiple value for the same key "set-real-ip-from" ?

Failed to pull image “velero/velero-plugin-for-gcp:v1.1.0” while installing Velero in GKE Cluster

北慕城南 提交于 2020-12-04 03:10:32
问题 I'm trying to install and configure Velero for kubernetes backup. I have followed the link to configure it in my GKE cluster. The installation went fine, but velero is not working. I am using google cloud shell for running all my commands (I have installed and configured velero client in my google cloud shell) On further inspection on velero deployment and velero pods, I found out that it is not able to pull the image from the docker repository. kubectl get pods -n velero NAME READY STATUS

How do I use Ingress with basic auth but only for certain routes?

折月煮酒 提交于 2020-11-29 21:07:47
问题 How do I make an ingress with basic auth on every path of the domain except on one. My ingress looks like this: apiVersion: extensions/v1beta1 kind: Ingress metadata: name: frontend-ingress namespace: dev labels: app: x annotations: kubernetes.io/ingress.global-static-ip-name: x.x.x ingress.kubernetes.io/auth-secret: "basic-auth" ingress.kubernetes.io/auth-type: "basic" spec: rules: - host: x.x.x http: paths: - path: / backend: serviceName: hello servicePort: 80 What i wanna make is to have