Skip to content

Commit

Permalink
Removing podinfo and moving to web-site (#206)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielscholl authored Sep 25, 2024
1 parent 9743a0b commit 80d6504
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 67 deletions.
11 changes: 0 additions & 11 deletions software/applications/podinfo/pod.yaml

This file was deleted.

37 changes: 0 additions & 37 deletions software/applications/podinfo/release.yaml

This file was deleted.

8 changes: 0 additions & 8 deletions software/applications/podinfo/source.yaml

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ apiVersion: security.istio.io/v1beta1
kind: PeerAuthentication
metadata:
name: default
namespace: podinfo
namespace: web-site
spec:
mtls:
mode: STRICT
---
apiVersion: networking.istio.io/v1beta1
kind: DestinationRule
metadata:
name: podinfo-rule
namespace: podinfo
name: web-site-rule
namespace: web-site
spec:
host: podinfo.podinfo.svc.cluster.local
host: osdu-developer-web-service.web-site.svc.cluster.local
trafficPolicy:
connectionPool:
tcp:
Expand All @@ -25,8 +25,8 @@ spec:
apiVersion: networking.istio.io/v1alpha3
kind: VirtualService
metadata:
name: podinfo
namespace: podinfo
name: web-site
namespace: web-site
spec:
hosts:
- "*"
Expand All @@ -39,6 +39,6 @@ spec:
prefix: "/"
route:
- destination:
host: "podinfo.podinfo.svc.cluster.local"
host: "osdu-developer-web-service.web-site.svc.cluster.local"
port:
number: 9898
number: 80
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
apiVersion: v1
kind: Namespace
metadata:
name: podinfo
name: web-site
labels:
toolkit.fluxcd.io/tenant: dev-team
istio-injection: enabled
33 changes: 33 additions & 0 deletions software/applications/web-site/web-site.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
apiVersion: v1
kind: Service
metadata:
name: osdu-developer-web-service
namespace: web-site
spec:
selector:
app: osdu-developer-web
ports:
- protocol: TCP
port: 80
targetPort: 8080
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: osdu-developer-web
namespace: web-site
spec:
replicas: 1
selector:
matchLabels:
app: osdu-developer-web
template:
metadata:
labels:
app: osdu-developer-web
spec:
containers:
- name: osdu-developer-web
image: ghcr.io/azure/osdu-developer-web:main
ports:
- containerPort: 8080
4 changes: 2 additions & 2 deletions stamp/applications/kustomize.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1beta2
kind: Kustomization
metadata:
name: application-podinfo
name: application-website
namespace: flux-system
spec:
interval: 1h
Expand All @@ -14,7 +14,7 @@ spec:
sourceRef:
kind: GitRepository
name: flux-system
path: ./software/applications/podinfo
path: ./software/applications/web-site
prune: true
wait: true
healthChecks:
Expand Down

0 comments on commit 80d6504

Please sign in to comment.