Skip to content

Instantly share code, notes, and snippets.

@oke-py
Created June 20, 2021 10:33
Show Gist options
  • Select an option

  • Save oke-py/61b901d5bdd89807a2327e45c585edc8 to your computer and use it in GitHub Desktop.

Select an option

Save oke-py/61b901d5bdd89807a2327e45c585edc8 to your computer and use it in GitHub Desktop.
[1ed762d] kubectl -n argocd get application prometheus -o yaml
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: |
{"apiVersion":"argoproj.io/v1alpha1","kind":"Application","metadata":{"annotations":{},"finalizers":["resources-finalizer.argocd.argoproj.io"],"labels":{"argocd.argoproj.io/instance":"argocd-apps"},"name":"prometheus","namespace":"argocd"},"spec":{"destination":{"namespace":"argocd","server":"https://kubernetes.default.svc"},"project":"default","source":{"path":"manifests/infra/prometheus/overlays/development","repoURL":"https://github.com/cloudnativedaysjp/dreamkast-infra.git","targetRevision":"426-prometheus"},"syncPolicy":{"automated":{"prune":true},"syncOptions":["CreateNamespace=true"]}}}
creationTimestamp: "2021-06-19T06:45:58Z"
finalizers:
- resources-finalizer.argocd.argoproj.io
generation: 24
labels:
argocd.argoproj.io/instance: argocd-apps
name: prometheus
namespace: argocd
resourceVersion: "14097"
uid: c595d219-edbb-4324-b87d-ec721dc7e769
spec:
destination:
namespace: argocd
server: https://kubernetes.default.svc
project: default
source:
path: manifests/infra/prometheus/overlays/development
repoURL: https://github.com/cloudnativedaysjp/dreamkast-infra.git
targetRevision: 426-prometheus
syncPolicy:
automated:
prune: true
syncOptions:
- CreateNamespace=true
status:
conditions:
- lastTransitionTime: "2021-06-19T08:23:16Z"
message: "rpc error: code = Unknown desc = Manifest generation error (cached):
`kustomize build /tmp/https:__github.com_cloudnativedaysjp_dreamkast-infra/manifests/infra/prometheus/overlays/development`
failed exit status 1: Error: accumulating resources: 2 errors occurred:\n\t*
accumulateFile error: \"accumulating resources from '../../base': '/tmp/https:__github.com_cloudnativedaysjp_dreamkast-infra/manifests/infra/prometheus/base'
must resolve to a file\"\n\t* accumulateDirector error: \"recursed accumulation
of path '/tmp/https:__github.com_cloudnativedaysjp_dreamkast-infra/manifests/infra/prometheus/base':
namespace transformation produces ID conflict: [{\\\"apiVersion\\\":\\\"rbac.authorization.k8s.io/v1\\\",\\\"kind\\\":\\\"Role\\\",\\\"metadata\\\":{\\\"annotations\\\":{\\\"config.kubernetes.io/previousNames\\\":\\\"prometheus-k8s\\\",\\\"config.kubernetes.io/previousNamespaces\\\":\\\"default\\\"},\\\"labels\\\":{\\\"app.kubernetes.io/component\\\":\\\"prometheus\\\",\\\"app.kubernetes.io/name\\\":\\\"prometheus\\\",\\\"app.kubernetes.io/part-of\\\":\\\"kube-prometheus\\\",\\\"app.kubernetes.io/version\\\":\\\"2.27.1\\\"},\\\"name\\\":\\\"prometheus-k8s\\\",\\\"namespace\\\":\\\"prometheus\\\"},\\\"rules\\\":[{\\\"apiGroups\\\":[\\\"\\\"],\\\"resources\\\":[\\\"services\\\",\\\"endpoints\\\",\\\"pods\\\"],\\\"verbs\\\":[\\\"get\\\",\\\"list\\\",\\\"watch\\\"]},{\\\"apiGroups\\\":[\\\"extensions\\\"],\\\"resources\\\":[\\\"ingresses\\\"],\\\"verbs\\\":[\\\"get\\\",\\\"list\\\",\\\"watch\\\"]},{\\\"apiGroups\\\":[\\\"networking.k8s.io\\\"],\\\"resources\\\":[\\\"ingresses\\\"],\\\"verbs\\\":[\\\"get\\\",\\\"list\\\",\\\"watch\\\"]}]}{nsfx:false,beh:unspecified}
{\\\"apiVersion\\\":\\\"rbac.authorization.k8s.io/v1\\\",\\\"kind\\\":\\\"Role\\\",\\\"metadata\\\":{\\\"labels\\\":{\\\"app.kubernetes.io/component\\\":\\\"prometheus\\\",\\\"app.kubernetes.io/name\\\":\\\"prometheus\\\",\\\"app.kubernetes.io/part-of\\\":\\\"kube-prometheus\\\",\\\"app.kubernetes.io/version\\\":\\\"2.27.1\\\"},\\\"name\\\":\\\"prometheus-k8s\\\",\\\"namespace\\\":\\\"prometheus\\\"},\\\"rules\\\":[{\\\"apiGroups\\\":[\\\"\\\"],\\\"resources\\\":[\\\"services\\\",\\\"endpoints\\\",\\\"pods\\\"],\\\"verbs\\\":[\\\"get\\\",\\\"list\\\",\\\"watch\\\"]},{\\\"apiGroups\\\":[\\\"extensions\\\"],\\\"resources\\\":[\\\"ingresses\\\"],\\\"verbs\\\":[\\\"get\\\",\\\"list\\\",\\\"watch\\\"]},{\\\"apiGroups\\\":[\\\"networking.k8s.io\\\"],\\\"resources\\\":[\\\"ingresses\\\"],\\\"verbs\\\":[\\\"get\\\",\\\"list\\\",\\\"watch\\\"]}]}{nsfx:false,beh:unspecified}]\""
type: ComparisonError
health:
status: Healthy
reconciledAt: "2021-06-19T08:26:16Z"
sync:
comparedTo:
destination:
namespace: argocd
server: https://kubernetes.default.svc
source:
path: manifests/infra/prometheus/overlays/development
repoURL: https://github.com/cloudnativedaysjp/dreamkast-infra.git
targetRevision: 426-prometheus
status: Unknown
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment