Skip to content

Instantly share code, notes, and snippets.

@deinspanjer
Last active October 14, 2019 18:48
Show Gist options
  • Save deinspanjer/ffacf2abce5344c3b8ada87afe693582 to your computer and use it in GitHub Desktop.
Save deinspanjer/ffacf2abce5344c3b8ada87afe693582 to your computer and use it in GitHub Desktop.
apiVersion: v1
data:
# Docker for Mac uses vpnkit to handle LoadBalancer ingresses, but it doesn't show an external IP, so the default
# ArgoCD health check for the ingress service doesn't show as Healthy. This custom health check fixes that issue.
resource.customizations: |
extensions/Service:
health.lua: |
hs = {}
hs.status = "Progressing"
if obj.status ~= nil then
if obj.status.loadBalancer ~= nil then
hs.status = "Healthy"
end
end
return hs
kind: ConfigMap
metadata:
name: argocd-cm
apiVersion: argoproj.io/v1alpha1
kind: Application
metadata:
annotations:
kubectl.kubernetes.io/last-applied-configuration: >
{...}
creationTimestamp: '2019-10-14T18:40:18Z'
generation: 21
labels:
app.kubernetes.io/instance: bootstrap
name: nginx-ingress
namespace: xxx
resourceVersion: '1405'
selfLink: >-
/apis/argoproj.io/v1alpha1/namespaces/xxx/applications/nginx-ingress
uid: 121c26d5-eeb2-11e9-9c29-025000000001
spec:
destination:
namespace: xxx
server: 'https://kubernetes.default.svc'
project: xxx
source:
helm:
parameters:
- name: controller.service.omitClusterIP
value: 'true'
- name: defaultBackend.service.omitClusterIP
value: 'true'
path: stable/nginx-ingress
repoURL: 'https://github.com/helm/charts'
targetRevision: HEAD
syncPolicy:
automated:
selfHeal: true
status:
health:
status: Progressing
history:
- deployedAt: '2019-10-14T18:40:42Z'
id: 0
revision: efd98f2d23e4fe52f6f94dfb68acf59ebf28cbb9
source:
helm:
parameters:
- name: controller.service.omitClusterIP
value: 'true'
- name: defaultBackend.service.omitClusterIP
value: 'true'
path: stable/nginx-ingress
repoURL: 'https://github.com/helm/charts'
targetRevision: HEAD
observedAt: '2019-10-14T18:40:53Z'
operationState:
finishedAt: '2019-10-14T18:40:42Z'
message: successfully synced (all tasks run)
operation:
sync:
revision: efd98f2d23e4fe52f6f94dfb68acf59ebf28cbb9
phase: Succeeded
startedAt: '2019-10-14T18:40:36Z'
syncResult:
resources:
- group: ''
hookPhase: Running
kind: ServiceAccount
message: serviceaccount/nginx-ingress-backend created
name: nginx-ingress-backend
namespace: xxx
status: Synced
syncPhase: Sync
version: v1
- group: ''
hookPhase: Running
kind: ServiceAccount
message: serviceaccount/nginx-ingress created
name: nginx-ingress
namespace: xxx
status: Synced
syncPhase: Sync
version: v1
- group: rbac.authorization.k8s.io
hookPhase: Running
kind: ClusterRole
message: clusterrole.rbac.authorization.k8s.io/nginx-ingress created
name: nginx-ingress
namespace: xxx
status: Synced
syncPhase: Sync
version: v1beta1
- group: rbac.authorization.k8s.io
hookPhase: Running
kind: ClusterRoleBinding
message: clusterrolebinding.rbac.authorization.k8s.io/nginx-ingress created
name: nginx-ingress
namespace: xxx
status: Synced
syncPhase: Sync
version: v1beta1
- group: rbac.authorization.k8s.io
hookPhase: Running
kind: Role
message: role.rbac.authorization.k8s.io/nginx-ingress created
name: nginx-ingress
namespace: xxx
status: Synced
syncPhase: Sync
version: v1beta1
- group: rbac.authorization.k8s.io
hookPhase: Running
kind: RoleBinding
message: rolebinding.rbac.authorization.k8s.io/nginx-ingress created
name: nginx-ingress
namespace: xxx
status: Synced
syncPhase: Sync
version: v1beta1
- group: ''
hookPhase: Running
kind: Service
message: service/nginx-ingress-controller created
name: nginx-ingress-controller
namespace: xxx
status: Synced
syncPhase: Sync
version: v1
- group: ''
hookPhase: Running
kind: Service
message: service/nginx-ingress-default-backend created
name: nginx-ingress-default-backend
namespace: xxx
status: Synced
syncPhase: Sync
version: v1
- group: apps
hookPhase: Running
kind: Deployment
message: deployment.apps/nginx-ingress-default-backend created
name: nginx-ingress-default-backend
namespace: xxx
status: Synced
syncPhase: Sync
version: v1
- group: apps
hookPhase: Running
kind: Deployment
message: deployment.apps/nginx-ingress-controller created
name: nginx-ingress-controller
namespace: xxx
status: Synced
syncPhase: Sync
version: v1
revision: efd98f2d23e4fe52f6f94dfb68acf59ebf28cbb9
source:
helm:
parameters:
- name: controller.service.omitClusterIP
value: 'true'
- name: defaultBackend.service.omitClusterIP
value: 'true'
path: stable/nginx-ingress
repoURL: 'https://github.com/helm/charts'
targetRevision: HEAD
reconciledAt: '2019-10-14T18:40:53Z'
resources:
- group: apps
health:
status: Healthy
kind: Deployment
name: nginx-ingress-default-backend
namespace: xxx
status: Synced
version: v1
- kind: ServiceAccount
name: nginx-ingress
namespace: xxx
status: Synced
version: v1
- kind: ServiceAccount
name: nginx-ingress-backend
namespace: xxx
status: Synced
version: v1
- group: rbac.authorization.k8s.io
kind: RoleBinding
name: nginx-ingress
namespace: xxx
status: Synced
version: v1beta1
- group: apps
health:
status: Healthy
kind: Deployment
name: nginx-ingress-controller
namespace: xxx
status: Synced
version: v1
- health:
status: Healthy
kind: Service
name: nginx-ingress-default-backend
namespace: xxx
status: Synced
version: v1
- group: rbac.authorization.k8s.io
kind: ClusterRole
name: nginx-ingress
status: Synced
version: v1beta1
- group: rbac.authorization.k8s.io
kind: ClusterRoleBinding
name: nginx-ingress
status: Synced
version: v1beta1
- group: rbac.authorization.k8s.io
kind: Role
name: nginx-ingress
namespace: xxx
status: Synced
version: v1beta1
- health:
status: Progressing
kind: Service
name: nginx-ingress-controller
namespace: xxx
status: Synced
version: v1
sourceType: Helm
summary:
images:
- 'k8s.gcr.io/defaultbackend-amd64:1.5'
- 'quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.26.1'
sync:
comparedTo:
destination:
namespace: xxx
server: 'https://kubernetes.default.svc'
source:
helm:
parameters:
- name: controller.service.omitClusterIP
value: 'true'
- name: defaultBackend.service.omitClusterIP
value: 'true'
path: stable/nginx-ingress
repoURL: 'https://github.com/helm/charts'
targetRevision: HEAD
revision: efd98f2d23e4fe52f6f94dfb68acf59ebf28cbb9
status: Synced
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment