diff --git a/app/deployment.yaml b/app/deployment.yaml deleted file mode 100644 index 5094629..0000000 --- a/app/deployment.yaml +++ /dev/null @@ -1,53 +0,0 @@ -apiVersion: apps/v1 -kind: Deployment -metadata: - annotations: - labels: - app: spring-petclinic - app.kubernetes.io/component: web - app.kubernetes.io/instance: spring-petclinic - app.kubernetes.io/name: spring-petclinic - app.kubernetes.io/part-of: spring-petclinic - app.openshift.io/runtime: java - name: spring-petclinic -spec: - replicas: 1 - selector: - matchLabels: - app: spring-petclinic - template: - metadata: - labels: - app: spring-petclinic - spec: - containers: - - name: spring-petclinic - imagePullPolicy: Always - image: quay.io/service-binding/spring-petclinic:latest - livenessProbe: - failureThreshold: 3 - httpGet: - path: / - port: 8080 - scheme: HTTP - initialDelaySeconds: 45 - periodSeconds: 10 - successThreshold: 1 - timeoutSeconds: 1 - ports: - - containerPort: 8080 - protocol: TCP - - containerPort: 8443 - protocol: TCP - - containerPort: 8778 - protocol: TCP - readinessProbe: - failureThreshold: 3 - httpGet: - path: / - port: 8080 - scheme: HTTP - initialDelaySeconds: 45 - periodSeconds: 10 - successThreshold: 1 - timeoutSeconds: 5 diff --git a/app/kustomization.yaml b/app/kustomization.yaml deleted file mode 100644 index 7fca0b7..0000000 --- a/app/kustomization.yaml +++ /dev/null @@ -1,4 +0,0 @@ -resources: -- deployment.yaml -- service.yaml -- route.yaml \ No newline at end of file diff --git a/app/route.yaml b/app/route.yaml deleted file mode 100644 index 44930ea..0000000 --- a/app/route.yaml +++ /dev/null @@ -1,13 +0,0 @@ -apiVersion: route.openshift.io/v1 -kind: Route -metadata: - labels: - app: spring-petclinic - name: spring-petclinic -spec: - port: - targetPort: 8080-tcp - to: - kind: Service - name: spring-petclinic - weight: 100 diff --git a/app/service.yaml b/app/service.yaml deleted file mode 100644 index d7caef2..0000000 --- a/app/service.yaml +++ /dev/null @@ -1,24 +0,0 @@ -apiVersion: v1 -kind: Service -metadata: - labels: - app: spring-petclinic - name: spring-petclinic -spec: - ports: - - name: 8080-tcp - port: 8080 - protocol: TCP - targetPort: 8080 - - name: 8443-tcp - port: 8443 - protocol: TCP - targetPort: 8443 - - name: 8778-tcp - port: 8778 - protocol: TCP - targetPort: 8778 - selector: - app: spring-petclinic - sessionAffinity: None - type: ClusterIP \ No newline at end of file diff --git a/argo/app.yaml b/argo/app.yaml index 2fc738e..9df068d 100644 --- a/argo/app.yaml +++ b/argo/app.yaml @@ -1,18 +1,18 @@ apiVersion: argoproj.io/v1alpha1 kind: Application metadata: - name: app-spring-petclinic - namespace: openshift-gitops + name: app-test + namespace: test spec: destination: - namespace: spring-petclinic + namespace: test server: https://kubernetes.default.svc project: default source: directory: recurse: true path: app - repoURL: https://github.com/redhat-developer/openshift-gitops-getting-started.git + repoURL: https://github.com/dipakkarde/openshift-gitops-getting-started.git targetRevision: main syncPolicy: syncOptions: diff --git a/argo/argocd.yaml b/argo/argocd.yaml index abd9e9a..c6e0742 100644 --- a/argo/argocd.yaml +++ b/argo/argocd.yaml @@ -1,8 +1,8 @@ apiVersion: argoproj.io/v1alpha1 kind: ArgoCD metadata: - name: myargocd + name: openshift-gitops spec: server: route: - enabled: true \ No newline at end of file + enabled: true diff --git a/argo/cluster.yaml b/argo/cluster.yaml index 7da7eab..804f6ba 100644 --- a/argo/cluster.yaml +++ b/argo/cluster.yaml @@ -2,7 +2,7 @@ apiVersion: argoproj.io/v1alpha1 kind: Application metadata: name: cluster-configs - namespace: openshift-gitops + namespace: test spec: destination: namespace: default @@ -12,5 +12,5 @@ spec: directory: recurse: true path: cluster - repoURL: https://github.com/siamaksade/openshift-gitops-getting-started - targetRevision: HEAD \ No newline at end of file + repoURL: https://github.com/dipakkarde/openshift-gitops-getting-started + targetRevision: HEAD diff --git a/cluster/namespace/spring-petclinic-ns.yaml b/cluster/namespace/spring-petclinic-ns.yaml index 99b8af5..b686dda 100644 --- a/cluster/namespace/spring-petclinic-ns.yaml +++ b/cluster/namespace/spring-petclinic-ns.yaml @@ -1,7 +1,7 @@ apiVersion: v1 kind: Namespace metadata: - name: spring-petclinic + name: test spec: finalizers: - - kubernetes \ No newline at end of file + - kubernetes diff --git a/cluster/namespace/spring-petclinic-rolebinding.yaml b/cluster/namespace/spring-petclinic-rolebinding.yaml index a1d0453..d8862bf 100644 --- a/cluster/namespace/spring-petclinic-rolebinding.yaml +++ b/cluster/namespace/spring-petclinic-rolebinding.yaml @@ -1,8 +1,8 @@ apiVersion: rbac.authorization.k8s.io/v1 kind: RoleBinding metadata: - name: spring-petclinic-role-binding - namespace: spring-petclinic + name: test-role-binding + namespace: test roleRef: apiGroup: rbac.authorization.k8s.io kind: ClusterRole @@ -10,4 +10,4 @@ roleRef: subjects: - kind: ServiceAccount name: openshift-gitops-argocd-application-controller - namespace: openshift-gitops \ No newline at end of file + namespace: openshift-gitops