Browse Source

Merge branch 'master' into dev

pull/79/head
Megha Mehta 4 years ago
parent
commit
2b9ebf7ce6
  1. 5
      Jenkinsfile
  2. 16
      kustomize-guestbook/base/argo-app.yaml
  3. 2
      kustomize-guestbook/base/ingress.yaml
  4. 6
      kustomize-guestbook/base/kustomization.yaml
  5. 16
      kustomize-guestbook/overlays/dev/argo-app.yaml
  6. 2
      kustomize-guestbook/overlays/dev/ingress.yaml
  7. 1
      kustomize-guestbook/overlays/dev/kustomization.yaml
  8. 16
      kustomize-guestbook/overlays/prod/argo-app.yaml
  9. 2
      kustomize-guestbook/overlays/prod/ingress.yaml
  10. 1
      kustomize-guestbook/overlays/prod/kustomization.yaml

5
Jenkinsfile

@ -16,11 +16,10 @@ node {
sh 'argocd app list' sh 'argocd app list'
// """ // """
} }
} // }
} }
stage('Create app') {
stage('Create app') {
withKubeConfig(credentialsId: 'aws-eksctl-kubeconfig', serverUrl: '') { withKubeConfig(credentialsId: 'aws-eksctl-kubeconfig', serverUrl: '') {
sh """ sh """
argocd app create ${env.BRANCH_NAME}-kustomize-guestbook \ argocd app create ${env.BRANCH_NAME}-kustomize-guestbook \

16
kustomize-guestbook/base/argo-app.yaml

@ -0,0 +1,16 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: guestbook
namespace: argocd
# finalizers:
# - resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: kustomize-guestbook
server: https://kubernetes.default.svc
project: default
source:
path: kustomize-guestbook
repoURL: https://github.com/radtac-craft/argocd-example-apps.git
targetRevision: HEAD

2
kustomize-guestbook/base/ingress.yaml

@ -1,7 +1,7 @@
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: kustomize-guestbook-ingress name: guestbook-ingress
# namespace: guestbook # namespace: guestbook
labels: labels:
app.kubernetes.io/component: server app.kubernetes.io/component: server

6
kustomize-guestbook/base/kustomization.yaml

@ -1,8 +1,10 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
namePrefix: kustomize- namePrefix: kustomize-
resources: resources:
- guestbook-ui-deployment.yaml - guestbook-ui-deployment.yaml
- guestbook-ui-svc.yaml - guestbook-ui-svc.yaml
- ingress.yaml - ingress.yaml
apiVersion: kustomize.config.k8s.io/v1beta1 - argo-app.yaml
kind: Kustomization

16
kustomize-guestbook/overlays/dev/argo-app.yaml

@ -0,0 +1,16 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: guestbook
namespace: argocd
# finalizers:
# - resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: dev-kustomize-guestbook
server: https://kubernetes.default.svc
project: default
source:
path: kustomize-guestbook/overlays/dev
repoURL: https://github.com/radtac-craft/argocd-example-apps.git
targetRevision: HEAD

2
kustomize-guestbook/overlays/dev/ingress.yaml

@ -1,7 +1,7 @@
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: kustomize-guestbook-ingress name: guestbook-ingress
namespace: namespace:
spec: spec:
rules: rules:

1
kustomize-guestbook/overlays/dev/kustomization.yaml

@ -3,3 +3,4 @@ bases:
namePrefix: dev- namePrefix: dev-
patchesStrategicMerge: patchesStrategicMerge:
- ingress.yaml - ingress.yaml
- argo-app.yaml

16
kustomize-guestbook/overlays/prod/argo-app.yaml

@ -0,0 +1,16 @@
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
name: guestbook
namespace: argocd
# finalizers:
# - resources-finalizer.argocd.argoproj.io
spec:
destination:
namespace: prod-kustomize-guestbook
server: https://kubernetes.default.svc
project: default
source:
path: kustomize-guestbook/overlays/prod
repoURL: https://github.com/radtac-craft/argocd-example-apps.git
targetRevision: HEAD

2
kustomize-guestbook/overlays/prod/ingress.yaml

@ -1,7 +1,7 @@
apiVersion: extensions/v1beta1 apiVersion: extensions/v1beta1
kind: Ingress kind: Ingress
metadata: metadata:
name: kustomize-guestbook-ingress name: guestbook-ingress
namespace: namespace:
spec: spec:
rules: rules:

1
kustomize-guestbook/overlays/prod/kustomization.yaml

@ -3,3 +3,4 @@ bases:
namePrefix: prod- namePrefix: prod-
patchesStrategicMerge: patchesStrategicMerge:
- ingress.yaml - ingress.yaml
- argo-app.yaml
Loading…
Cancel
Save