Created
August 25, 2019 00:45
-
-
Save inductor/ab9c3895d378856211ea9d77dc720210 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
name: api-ingress | |
annotations: | |
kubernetes.io/ingress.allow-http: "false" # 80番をGCLBでExposeするかどうかの設定。内部的なAPIサーバーなのでOFFにしている。 | |
kubernetes.io/ingress.global-static-ip-name: "api-ip" # GCP上でStatic IPを取得しておくとここで呼べる | |
ingress.gcp.kubernetes.io/pre-shared-cert: "api-cert" # GCLBにセットしたい証明書をここに突っ込める。現状だとgcloudコマンドとかTerraform使ってGCP BetaのAPIで作成可 | |
spec: | |
backend: | |
serviceName: api | |
servicePort: 80 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment