Last active
April 29, 2018 20:24
-
-
Save tairov/ef888195dde50f91f3ac1a4e79198b60 to your computer and use it in GitHub Desktop.
Issues with ingres. Can't access web-app.localhost domain name. UPDATE: resolved, see solution.yml
This file contains hidden or 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: Deployment | |
metadata: | |
namespace: default | |
name: "dev-simple-web-app-web-app" | |
spec: | |
strategy: | |
type: Recreate | |
replicas: 1 | |
minReadySeconds: 0 | |
revisionHistoryLimit: 2 | |
selector: | |
matchLabels: | |
app: "dev-simple-web-app-web-app" | |
template: | |
metadata: | |
labels: | |
app: "dev-simple-web-app-web-app" | |
spec: | |
restartPolicy: "Always" | |
hostname: "web-app" | |
nodeSelector: | |
kubernetes.io/hostname: minikube | |
containers: | |
- name: "dev-simple-web-app-web-app" | |
imagePullPolicy: Never | |
image: "simple-web-app:v2" | |
resources: | |
limits: | |
cpu: "1" | |
memory: "1Gi" | |
requests: | |
cpu: "0.25" | |
memory: "1Gi" | |
--- | |
kind: Service | |
apiVersion: v1 | |
metadata: | |
namespace: default | |
name: "dev-simple-web-app-web-app" | |
spec: | |
selector: | |
app: "dev-simple-web-app-web-app" | |
type: ClusterIP | |
ports: | |
- name: port-80-tcp | |
protocol: TCP | |
port: 80 | |
--- | |
apiVersion: extensions/v1beta1 | |
kind: Ingress | |
metadata: | |
namespace: default | |
name: "dev-simple-web-app-web-app" | |
annotations: | |
nginx.ingress.kubernates.io/rewrite-target: / | |
ingress.kubernates.io/rewrite-target: / | |
nginx.ingress.kubernates.io/ssl-redirect: "false" | |
kubernetes.io/ingress.class: "nonprod-public" | |
spec: | |
rules: | |
- host: web-app.localhost | |
http: | |
paths: | |
- path: / | |
backend: | |
serviceName: "dev-simple-web-app-web-app" | |
servicePort: 80 |
This file contains hidden or 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
# leave only this line | |
ingress.kubernates.io/rewrite-target: / |
This file contains hidden or 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
$ kubectl version | |
Client Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0eaead", GitTreeState:"clean", BuildDate:"2018-03-27T00:13:02Z", GoVersion:"go1.9.4", Compiler:"gc", Platform:"darwin/amd64"} | |
Server Version: version.Info{Major:"1", Minor:"10", GitVersion:"v1.10.0", GitCommit:"fc32d2f3698e36b93322a3465f63a14e9f0eaead", GitTreeState:"clean", BuildDate:"2018-03-26T16:44:10Z", GoVersion:"go1.9.3", Compiler:"gc", Platform:"linux/amd64"} | |
$ minikube version | |
minikube version: v0.26.1 | |
$ kubectl get pods | |
NAME READY STATUS RESTARTS AGE | |
dev-simple-web-app-web-app-7766d5857c-j6mjp 1/1 Running 0 13s |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment