Cannot create Ingress for PrometheusKubernetes Ingress servicePort alternative?GKE with Ingress setup always gives status UNHEALTHYHow to mount a volume with a windows container in kubernetes?Deleting path from kubernetes ingress with java kubernetes-clientIngress resource does not give access to exposed servicesAccess stateful headless kubernetes externally?Why Kubernetes config file for ThingsBoard service use TCP for CoAP?Kubernetes HPA with metrics from Prometheus Node-ExporterHow to handle http 303 redirects from an app behind an ingress controller?Unable to setup kubernetes ingress-nginx

expiry or manufactured date?

How does a blind passenger not die, if driver becomes unconscious

Can White Castle?

Links to webpages in books

What is the mechanical difference between the Spectator's Create Food and Water action and the Banshee's Undead Nature Trait?

What was the Shuttle Carrier Aircraft escape tunnel?

First-year PhD giving a talk among well-established researchers in the field

Is my Rep in Stack-Exchange Form?

Why do textbooks often include the solutions to odd or even numbered problems but not both?

Should I prioritize my 401(k) over my student loans?

Do I have any obligations to my PhD supervisor's requests after I have graduated?

Why is C++ initial allocation so much larger than C's?

Would it be a copyright violation if I made a character’s full name refer to a song?

How can I politely work my way around not liking coffee or beer when it comes to professional networking?

Why cruise at 7000' in an A319?

If I wouldn't want to read the story, is writing it still a good idea?

Is it possible writing coservation of relativistic energy in this naive way?

Interaction between Leyline of Anticipation and Teferi, Time Raveler

Impossible darts scores

What are the penalties for overstaying in USA?

C-152 carb heat on before landing in hot weather?

Is it damaging to turn off a small fridge for two days every week?

Archery in modern conflicts

Has there been any indication at all that further negotiation between the UK and EU is possible?



Cannot create Ingress for Prometheus


Kubernetes Ingress servicePort alternative?GKE with Ingress setup always gives status UNHEALTHYHow to mount a volume with a windows container in kubernetes?Deleting path from kubernetes ingress with java kubernetes-clientIngress resource does not give access to exposed servicesAccess stateful headless kubernetes externally?Why Kubernetes config file for ThingsBoard service use TCP for CoAP?Kubernetes HPA with metrics from Prometheus Node-ExporterHow to handle http 303 redirects from an app behind an ingress controller?Unable to setup kubernetes ingress-nginx






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








0















I would like to create an entry for Prometheus.



I have nodePort service deployed like this :



---
apiVersion: v1
kind: Service
metadata:
name: prometheus
namespace: monitoring
labels:
app: prometheus
spec:
type: NodePort
ports:
- port: 9090
targetPort: 9090
nodePort: 31190
protocol: TCP
selector:
app: prometheus


And my Ingress is :



apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: prometheus-ingress
namespace: monitoring
annotations:
ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- host: prometheus.example.com
http:
paths:
- path: /
backend:
serviceName: prometheus
servicePort: 9090


Can you explain me why my ingress didn't work ?










share|improve this question
























  • How are you testing if it works or not? You curl it?

    – suren
    Mar 25 at 10:09











  • Yes I trying and it didn't work.

    – M.Hol
    Mar 25 at 10:26











  • can you paste the test? what's your curl command?

    – suren
    Mar 25 at 10:30











  • You are not using an ingress controller properly here, use an annotation in your ingress like kubernetes.io/ingress.class: nginx depending on the kind of controller you are using.

    – cookiedough
    Mar 25 at 18:15











  • Paste the error (and other steps you've executed to debug it) please to the question.

    – AhmetB - Google
    Mar 25 at 19:16

















0















I would like to create an entry for Prometheus.



I have nodePort service deployed like this :



---
apiVersion: v1
kind: Service
metadata:
name: prometheus
namespace: monitoring
labels:
app: prometheus
spec:
type: NodePort
ports:
- port: 9090
targetPort: 9090
nodePort: 31190
protocol: TCP
selector:
app: prometheus


And my Ingress is :



apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: prometheus-ingress
namespace: monitoring
annotations:
ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- host: prometheus.example.com
http:
paths:
- path: /
backend:
serviceName: prometheus
servicePort: 9090


Can you explain me why my ingress didn't work ?










share|improve this question
























  • How are you testing if it works or not? You curl it?

    – suren
    Mar 25 at 10:09











  • Yes I trying and it didn't work.

    – M.Hol
    Mar 25 at 10:26











  • can you paste the test? what's your curl command?

    – suren
    Mar 25 at 10:30











  • You are not using an ingress controller properly here, use an annotation in your ingress like kubernetes.io/ingress.class: nginx depending on the kind of controller you are using.

    – cookiedough
    Mar 25 at 18:15











  • Paste the error (and other steps you've executed to debug it) please to the question.

    – AhmetB - Google
    Mar 25 at 19:16













0












0








0








I would like to create an entry for Prometheus.



I have nodePort service deployed like this :



---
apiVersion: v1
kind: Service
metadata:
name: prometheus
namespace: monitoring
labels:
app: prometheus
spec:
type: NodePort
ports:
- port: 9090
targetPort: 9090
nodePort: 31190
protocol: TCP
selector:
app: prometheus


And my Ingress is :



apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: prometheus-ingress
namespace: monitoring
annotations:
ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- host: prometheus.example.com
http:
paths:
- path: /
backend:
serviceName: prometheus
servicePort: 9090


Can you explain me why my ingress didn't work ?










share|improve this question
















I would like to create an entry for Prometheus.



I have nodePort service deployed like this :



---
apiVersion: v1
kind: Service
metadata:
name: prometheus
namespace: monitoring
labels:
app: prometheus
spec:
type: NodePort
ports:
- port: 9090
targetPort: 9090
nodePort: 31190
protocol: TCP
selector:
app: prometheus


And my Ingress is :



apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: prometheus-ingress
namespace: monitoring
annotations:
ingress.kubernetes.io/rewrite-target: /
spec:
rules:
- host: prometheus.example.com
http:
paths:
- path: /
backend:
serviceName: prometheus
servicePort: 9090


Can you explain me why my ingress didn't work ?







kubernetes google-cloud-platform prometheus google-kubernetes-engine






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Mar 25 at 10:27







M.Hol

















asked Mar 25 at 9:41









M.HolM.Hol

258 bronze badges




258 bronze badges












  • How are you testing if it works or not? You curl it?

    – suren
    Mar 25 at 10:09











  • Yes I trying and it didn't work.

    – M.Hol
    Mar 25 at 10:26











  • can you paste the test? what's your curl command?

    – suren
    Mar 25 at 10:30











  • You are not using an ingress controller properly here, use an annotation in your ingress like kubernetes.io/ingress.class: nginx depending on the kind of controller you are using.

    – cookiedough
    Mar 25 at 18:15











  • Paste the error (and other steps you've executed to debug it) please to the question.

    – AhmetB - Google
    Mar 25 at 19:16

















  • How are you testing if it works or not? You curl it?

    – suren
    Mar 25 at 10:09











  • Yes I trying and it didn't work.

    – M.Hol
    Mar 25 at 10:26











  • can you paste the test? what's your curl command?

    – suren
    Mar 25 at 10:30











  • You are not using an ingress controller properly here, use an annotation in your ingress like kubernetes.io/ingress.class: nginx depending on the kind of controller you are using.

    – cookiedough
    Mar 25 at 18:15











  • Paste the error (and other steps you've executed to debug it) please to the question.

    – AhmetB - Google
    Mar 25 at 19:16
















How are you testing if it works or not? You curl it?

– suren
Mar 25 at 10:09





How are you testing if it works or not? You curl it?

– suren
Mar 25 at 10:09













Yes I trying and it didn't work.

– M.Hol
Mar 25 at 10:26





Yes I trying and it didn't work.

– M.Hol
Mar 25 at 10:26













can you paste the test? what's your curl command?

– suren
Mar 25 at 10:30





can you paste the test? what's your curl command?

– suren
Mar 25 at 10:30













You are not using an ingress controller properly here, use an annotation in your ingress like kubernetes.io/ingress.class: nginx depending on the kind of controller you are using.

– cookiedough
Mar 25 at 18:15





You are not using an ingress controller properly here, use an annotation in your ingress like kubernetes.io/ingress.class: nginx depending on the kind of controller you are using.

– cookiedough
Mar 25 at 18:15













Paste the error (and other steps you've executed to debug it) please to the question.

– AhmetB - Google
Mar 25 at 19:16





Paste the error (and other steps you've executed to debug it) please to the question.

– AhmetB - Google
Mar 25 at 19:16












0






active

oldest

votes














Your Answer






StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");

StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
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%2fstackoverflow.com%2fquestions%2f55334933%2fcannot-create-ingress-for-prometheus%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Stack Overflow!


  • 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%2fstackoverflow.com%2fquestions%2f55334933%2fcannot-create-ingress-for-prometheus%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

Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript