Skip to content

Commit

Permalink
Updated for IBM Cloud deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
rofrano committed Jul 9, 2022
1 parent fb26181 commit ae7547c
Show file tree
Hide file tree
Showing 7 changed files with 23 additions and 17 deletions.
1 change: 1 addition & 0 deletions kube/base/service.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,4 @@ spec:
- name: http
protocol: TCP
port: 8080
targetPort: 8080
15 changes: 5 additions & 10 deletions kube/overlays/dev/kustomization.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,21 @@
# To update the build number at deployment time use:
# export BUILD_NUMBER="v1.x.x"
# yq eval -i ".images[0].newTag = $BUILD_NUMBER" overlays/dev/kustomization.yaml
---
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
bases:
- ../../base

namespace: dev

# namePrefix: dev-
commonLabels:
env: dev

resources:
- namespace.yaml
# resources:
# - namespace.yaml

patches:
- replica-count.yaml
- node-port.yaml
- patch-deploy.yaml
- patch-svc.yaml

images:
- name: hitcounter
newName: us.icr.io/nyu_devops/lab-kubernetes
newTag: "2.1"
newTag: "21"
4 changes: 4 additions & 0 deletions kube/overlays/dev/patch-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ metadata:
name: hitcounter
spec:
replicas: 1
template:
spec:
imagePullSecrets:
- name: all-icr-io
2 changes: 2 additions & 0 deletions kube/overlays/dev/patch-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Service
metadata:
name: hitcounter
spec:
type: NodePort
internalTrafficPolicy: Local
ports:
- name: http
protocol: TCP
Expand Down
12 changes: 5 additions & 7 deletions kube/overlays/prod/kustomization.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,17 @@ bases:
- ../../base

namespace: prod

# namePrefix: prod-
commonLabels:
env: prod

resources:
- namespace.yaml
# resources:
# - namespace.yaml

patches:
- replica-count.yaml
- node-port.yaml
- patch-deploy.yaml
- patch-svc.yaml

images:
- name: hitcounter
newName: us.icr.io/nyu_devops/lab-kubernetes
newTag: "2.1"
newTag: "21"
4 changes: 4 additions & 0 deletions kube/overlays/prod/patch-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,7 @@ metadata:
name: hitcounter
spec:
replicas: 2
template:
spec:
imagePullSecrets:
- name: all-icr-io
2 changes: 2 additions & 0 deletions kube/overlays/prod/patch-svc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ kind: Service
metadata:
name: hitcounter
spec:
type: NodePort
internalTrafficPolicy: Local
ports:
- name: http
protocol: TCP
Expand Down

0 comments on commit ae7547c

Please sign in to comment.