Skip to content

k8s conf problem #153

Answered by roelvdm3
jonatanhost asked this question in Q&A
Discussion options

You must be logged in to vote

@jonatanhost I looked at your config but cannot find any flaws. This is the config I'm using on K8s. Please note that the service gets exposed on port 30100.

EDIT: looking at your config again.. You might want to make sure your selectors and labels are right. The labels on the POD should be the same as you selector in the Service. You use the app label in the POD and name selector in the Service.

Namespace:

kind: Namespace
metadata:
  creationTimestamp: null
  name: grott-p
spec: {}
status: {}

deployment:

apiVersion: apps/v1
kind: Deployment
metadata:
  labels:
    app: grott
  name: grott
  namespace: grott-p
spec:
  replicas: 1
  selector:
    matchLabels:
      app: grott
  strategy: …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by jonatanhost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants