SSL cert for kubernetes Ingress for custom domain hosted by google domain Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern) Come Celebrate our 10 Year Anniversary!Trouble with Google Apps Custom Domain SSLExtract correct format of key and cert files from .p12 file for a SSL MEAN App?Accessing kubernetes (hosted via google container engine) securely using kubectl from a remote serverBest practices for cluster separation on Google Container Engine / Kubernetes?Automatically created ingress firewall rules for Google Kubernetes Engine clusterGCP SSL Certificate Installation Error "The Certificate data is invalid. Please ensure that the private key and public certificate matchKubernetes GCE Ingress cannot find servicesInheritance in Kubernetes Ingress Rule Pathingress google compute cloud ipKubernetes: 502 Bad Gateway for some assets - with Nginx Ingress

What is the meaning of 'breadth' in breadth first search?

Trademark violation for app?

Crossing US/Canada Border for less than 24 hours

How did Fremen produce and carry enough thumpers to use Sandworms as de facto Ubers?

Is multiple magic items in one inherently imbalanced?

Project Euler #1 in C++

What makes a man succeed?

How to pronounce 伝統色

In musical terms, what properties are varied by the human voice to produce different words / syllables?

What does it mean that physics no longer uses mechanical models to describe phenomena?

How does the math work when buying airline miles?

Strange behavior of Object.defineProperty() in JavaScript

Has negative voting ever been officially implemented in elections, or seriously proposed, or even studied?

How to align multiple equations

Is it fair for a professor to grade us on the possession of past papers?

What would you call this weird metallic apparatus that allows you to lift people?

Is it possible to force a specific program to remain in memory after closing it?

How would a mousetrap for use in space work?

Should a wizard buy fine inks every time he want to copy spells into his spellbook?

Significance of Cersei's obsession with elephants?

What does Turing mean by this statement?

What to do with repeated rejections for phd position

How many morphisms from 1 to 1+1 can there be?

The Nth Gryphon Number



SSL cert for kubernetes Ingress for custom domain hosted by google domain



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 00:00UTC (8:00pm US/Eastern)
Come Celebrate our 10 Year Anniversary!Trouble with Google Apps Custom Domain SSLExtract correct format of key and cert files from .p12 file for a SSL MEAN App?Accessing kubernetes (hosted via google container engine) securely using kubectl from a remote serverBest practices for cluster separation on Google Container Engine / Kubernetes?Automatically created ingress firewall rules for Google Kubernetes Engine clusterGCP SSL Certificate Installation Error "The Certificate data is invalid. Please ensure that the private key and public certificate matchKubernetes GCE Ingress cannot find servicesInheritance in Kubernetes Ingress Rule Pathingress google compute cloud ipKubernetes: 502 Bad Gateway for some assets - with Nginx Ingress



.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








0















I have purchased a domain name from google domains.



I setup a project with GCLOUD Kubernetes using Ingress.



Documentation for ingress Ingress Github says to enter
key here:



apiVersion: v1
kind: Secret
metadata:
name: testsecret
namespace: default
type: Opaque
data:
tls.crt: base64 encoded cert
tls.key: base64 encoded key


I found doc for how to configure and get SSL cert for app engine. app engine custom domains.



I'm guessing that app engine SSL config has nothing to do with kubernetes ingress.



Would like to know how to get and maintain ssl cert for my ingress.










share|improve this question



















  • 1





    So all you want is a cert, not how to apply it?

    – Spooler
    Mar 1 '18 at 20:58

















0















I have purchased a domain name from google domains.



I setup a project with GCLOUD Kubernetes using Ingress.



Documentation for ingress Ingress Github says to enter
key here:



apiVersion: v1
kind: Secret
metadata:
name: testsecret
namespace: default
type: Opaque
data:
tls.crt: base64 encoded cert
tls.key: base64 encoded key


I found doc for how to configure and get SSL cert for app engine. app engine custom domains.



I'm guessing that app engine SSL config has nothing to do with kubernetes ingress.



Would like to know how to get and maintain ssl cert for my ingress.










share|improve this question



















  • 1





    So all you want is a cert, not how to apply it?

    – Spooler
    Mar 1 '18 at 20:58













0












0








0








I have purchased a domain name from google domains.



I setup a project with GCLOUD Kubernetes using Ingress.



Documentation for ingress Ingress Github says to enter
key here:



apiVersion: v1
kind: Secret
metadata:
name: testsecret
namespace: default
type: Opaque
data:
tls.crt: base64 encoded cert
tls.key: base64 encoded key


I found doc for how to configure and get SSL cert for app engine. app engine custom domains.



I'm guessing that app engine SSL config has nothing to do with kubernetes ingress.



Would like to know how to get and maintain ssl cert for my ingress.










share|improve this question
















I have purchased a domain name from google domains.



I setup a project with GCLOUD Kubernetes using Ingress.



Documentation for ingress Ingress Github says to enter
key here:



apiVersion: v1
kind: Secret
metadata:
name: testsecret
namespace: default
type: Opaque
data:
tls.crt: base64 encoded cert
tls.key: base64 encoded key


I found doc for how to configure and get SSL cert for app engine. app engine custom domains.



I'm guessing that app engine SSL config has nothing to do with kubernetes ingress.



Would like to know how to get and maintain ssl cert for my ingress.







ssl-certificate kubernetes google-kubernetes-engine






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 2 '18 at 9:11









N Singh

414210




414210










asked Mar 1 '18 at 20:57









grabbaggrabbag

12826




12826







  • 1





    So all you want is a cert, not how to apply it?

    – Spooler
    Mar 1 '18 at 20:58












  • 1





    So all you want is a cert, not how to apply it?

    – Spooler
    Mar 1 '18 at 20:58







1




1





So all you want is a cert, not how to apply it?

– Spooler
Mar 1 '18 at 20:58





So all you want is a cert, not how to apply it?

– Spooler
Mar 1 '18 at 20:58










1 Answer
1






active

oldest

votes


















0














Ingress can be secured with the secret having TLS private key and the certificate. Then can provide reference to the secret in the ingress. Refer to this documentation for more information.



Here is the example for the TLS Ingress rule to use SSL in NGINX along with information on storing SSL certificate in a secret.



Example:



Create secret:



kubectl create secret tls foo-secret --key /tmp/tls.key --cert /tmp/tls.crt


Reference secret in the ingress:



 spec:
tls:
- hosts:
foo.bar.com
secretName: foo-secret


You may also wants to check these links/documentation, which can help you.



Link 1
Link 2
Link 3






share|improve this answer























  • Thank you. What about the cert themselves. Google app appears to offer auto update of certs, like wise so does "lets encrypt". Any what to automate the cert refresh when using ingress ?

    – grabbag
    Mar 2 '18 at 1:13











  • There is a feature request in place for automated certificate management. You can "star" this feature request to show your interest in this feature.

    – N Singh
    Mar 2 '18 at 1:42











  • I cant find documentation on the timestamp "last_updated" in your "Link 3". Does anyone know what this does?

    – grabbag
    Mar 2 '18 at 12:04











  • @grabbag I could not find any documentation on "last_updated" label as well. However, as per the comment describing the label 'last_update' in ingress.yaml file, it is 'Timestamp used in order to force reload of the secret'. It should work just using the 'kubectl apply -f ingress_file.yaml' as well.

    – N Singh
    Mar 6 '18 at 15:11











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f899560%2fssl-cert-for-kubernetes-ingress-for-custom-domain-hosted-by-google-domain%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














Ingress can be secured with the secret having TLS private key and the certificate. Then can provide reference to the secret in the ingress. Refer to this documentation for more information.



Here is the example for the TLS Ingress rule to use SSL in NGINX along with information on storing SSL certificate in a secret.



Example:



Create secret:



kubectl create secret tls foo-secret --key /tmp/tls.key --cert /tmp/tls.crt


Reference secret in the ingress:



 spec:
tls:
- hosts:
foo.bar.com
secretName: foo-secret


You may also wants to check these links/documentation, which can help you.



Link 1
Link 2
Link 3






share|improve this answer























  • Thank you. What about the cert themselves. Google app appears to offer auto update of certs, like wise so does "lets encrypt". Any what to automate the cert refresh when using ingress ?

    – grabbag
    Mar 2 '18 at 1:13











  • There is a feature request in place for automated certificate management. You can "star" this feature request to show your interest in this feature.

    – N Singh
    Mar 2 '18 at 1:42











  • I cant find documentation on the timestamp "last_updated" in your "Link 3". Does anyone know what this does?

    – grabbag
    Mar 2 '18 at 12:04











  • @grabbag I could not find any documentation on "last_updated" label as well. However, as per the comment describing the label 'last_update' in ingress.yaml file, it is 'Timestamp used in order to force reload of the secret'. It should work just using the 'kubectl apply -f ingress_file.yaml' as well.

    – N Singh
    Mar 6 '18 at 15:11















0














Ingress can be secured with the secret having TLS private key and the certificate. Then can provide reference to the secret in the ingress. Refer to this documentation for more information.



Here is the example for the TLS Ingress rule to use SSL in NGINX along with information on storing SSL certificate in a secret.



Example:



Create secret:



kubectl create secret tls foo-secret --key /tmp/tls.key --cert /tmp/tls.crt


Reference secret in the ingress:



 spec:
tls:
- hosts:
foo.bar.com
secretName: foo-secret


You may also wants to check these links/documentation, which can help you.



Link 1
Link 2
Link 3






share|improve this answer























  • Thank you. What about the cert themselves. Google app appears to offer auto update of certs, like wise so does "lets encrypt". Any what to automate the cert refresh when using ingress ?

    – grabbag
    Mar 2 '18 at 1:13











  • There is a feature request in place for automated certificate management. You can "star" this feature request to show your interest in this feature.

    – N Singh
    Mar 2 '18 at 1:42











  • I cant find documentation on the timestamp "last_updated" in your "Link 3". Does anyone know what this does?

    – grabbag
    Mar 2 '18 at 12:04











  • @grabbag I could not find any documentation on "last_updated" label as well. However, as per the comment describing the label 'last_update' in ingress.yaml file, it is 'Timestamp used in order to force reload of the secret'. It should work just using the 'kubectl apply -f ingress_file.yaml' as well.

    – N Singh
    Mar 6 '18 at 15:11













0












0








0







Ingress can be secured with the secret having TLS private key and the certificate. Then can provide reference to the secret in the ingress. Refer to this documentation for more information.



Here is the example for the TLS Ingress rule to use SSL in NGINX along with information on storing SSL certificate in a secret.



Example:



Create secret:



kubectl create secret tls foo-secret --key /tmp/tls.key --cert /tmp/tls.crt


Reference secret in the ingress:



 spec:
tls:
- hosts:
foo.bar.com
secretName: foo-secret


You may also wants to check these links/documentation, which can help you.



Link 1
Link 2
Link 3






share|improve this answer













Ingress can be secured with the secret having TLS private key and the certificate. Then can provide reference to the secret in the ingress. Refer to this documentation for more information.



Here is the example for the TLS Ingress rule to use SSL in NGINX along with information on storing SSL certificate in a secret.



Example:



Create secret:



kubectl create secret tls foo-secret --key /tmp/tls.key --cert /tmp/tls.crt


Reference secret in the ingress:



 spec:
tls:
- hosts:
foo.bar.com
secretName: foo-secret


You may also wants to check these links/documentation, which can help you.



Link 1
Link 2
Link 3







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 1 '18 at 23:53









N SinghN Singh

414210




414210












  • Thank you. What about the cert themselves. Google app appears to offer auto update of certs, like wise so does "lets encrypt". Any what to automate the cert refresh when using ingress ?

    – grabbag
    Mar 2 '18 at 1:13











  • There is a feature request in place for automated certificate management. You can "star" this feature request to show your interest in this feature.

    – N Singh
    Mar 2 '18 at 1:42











  • I cant find documentation on the timestamp "last_updated" in your "Link 3". Does anyone know what this does?

    – grabbag
    Mar 2 '18 at 12:04











  • @grabbag I could not find any documentation on "last_updated" label as well. However, as per the comment describing the label 'last_update' in ingress.yaml file, it is 'Timestamp used in order to force reload of the secret'. It should work just using the 'kubectl apply -f ingress_file.yaml' as well.

    – N Singh
    Mar 6 '18 at 15:11

















  • Thank you. What about the cert themselves. Google app appears to offer auto update of certs, like wise so does "lets encrypt". Any what to automate the cert refresh when using ingress ?

    – grabbag
    Mar 2 '18 at 1:13











  • There is a feature request in place for automated certificate management. You can "star" this feature request to show your interest in this feature.

    – N Singh
    Mar 2 '18 at 1:42











  • I cant find documentation on the timestamp "last_updated" in your "Link 3". Does anyone know what this does?

    – grabbag
    Mar 2 '18 at 12:04











  • @grabbag I could not find any documentation on "last_updated" label as well. However, as per the comment describing the label 'last_update' in ingress.yaml file, it is 'Timestamp used in order to force reload of the secret'. It should work just using the 'kubectl apply -f ingress_file.yaml' as well.

    – N Singh
    Mar 6 '18 at 15:11
















Thank you. What about the cert themselves. Google app appears to offer auto update of certs, like wise so does "lets encrypt". Any what to automate the cert refresh when using ingress ?

– grabbag
Mar 2 '18 at 1:13





Thank you. What about the cert themselves. Google app appears to offer auto update of certs, like wise so does "lets encrypt". Any what to automate the cert refresh when using ingress ?

– grabbag
Mar 2 '18 at 1:13













There is a feature request in place for automated certificate management. You can "star" this feature request to show your interest in this feature.

– N Singh
Mar 2 '18 at 1:42





There is a feature request in place for automated certificate management. You can "star" this feature request to show your interest in this feature.

– N Singh
Mar 2 '18 at 1:42













I cant find documentation on the timestamp "last_updated" in your "Link 3". Does anyone know what this does?

– grabbag
Mar 2 '18 at 12:04





I cant find documentation on the timestamp "last_updated" in your "Link 3". Does anyone know what this does?

– grabbag
Mar 2 '18 at 12:04













@grabbag I could not find any documentation on "last_updated" label as well. However, as per the comment describing the label 'last_update' in ingress.yaml file, it is 'Timestamp used in order to force reload of the secret'. It should work just using the 'kubectl apply -f ingress_file.yaml' as well.

– N Singh
Mar 6 '18 at 15:11





@grabbag I could not find any documentation on "last_updated" label as well. However, as per the comment describing the label 'last_update' in ingress.yaml file, it is 'Timestamp used in order to force reload of the secret'. It should work just using the 'kubectl apply -f ingress_file.yaml' as well.

– N Singh
Mar 6 '18 at 15:11

















draft saved

draft discarded
















































Thanks for contributing an answer to Server Fault!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f899560%2fssl-cert-for-kubernetes-ingress-for-custom-domain-hosted-by-google-domain%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

What if the end-user didn't have the required library?What is setup.py?What is a clean, pythonic way to have multiple constructors in Python?What does Ruby have that Python doesn't, and vice versa?What is the reason for having '//' in Python?How do I create a namespace package in Python?How to package shared objects that python modules depend on?setuptools vs. distutils: why is distutils still a thing?Navigation in Windows 10 vs code not going to virtualenv library when the same library is installed at user levelPython create package for local usePackaging a project that uses multiple python versionsWhy is permission denied on pip install except for when “--user” is included at end of command?

Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos