Browse Source

Merge branch 'master' into dev

pull/79/head
Megha Mehta 4 years ago
parent
commit
2b9ebf7ce6
  1. 9
      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. 3
      kustomize-guestbook/overlays/dev/kustomization.yaml
  8. 16
      kustomize-guestbook/overlays/prod/argo-app.yaml
  9. 2
      kustomize-guestbook/overlays/prod/ingress.yaml
  10. 3
      kustomize-guestbook/overlays/prod/kustomization.yaml

9
Jenkinsfile

@ -16,11 +16,10 @@ node {
sh 'argocd app list'
// """
}
}
}
stage('Create app') {
// }
}
stage('Create app') {
withKubeConfig(credentialsId: 'aws-eksctl-kubeconfig', serverUrl: '') {
sh """
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
kind: Ingress
metadata:
name: kustomize-guestbook-ingress
name: guestbook-ingress
# namespace: guestbook
labels:
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-
resources:
- guestbook-ui-deployment.yaml
- guestbook-ui-svc.yaml
- ingress.yaml
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
- argo-app.yaml

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
kind: Ingress
metadata:
name: kustomize-guestbook-ingress
name: guestbook-ingress
namespace:
spec:
rules:

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

@ -2,4 +2,5 @@ bases:
- ../../base
namePrefix: dev-
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
kind: Ingress
metadata:
name: kustomize-guestbook-ingress
name: guestbook-ingress
namespace:
spec:
rules:

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

@ -2,4 +2,5 @@ bases:
- ../../base
namePrefix: prod-
patchesStrategicMerge:
- ingress.yaml
- ingress.yaml
- argo-app.yaml
Loading…
Cancel
Save