This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: argoproj.io/v1alpha1 | |
| kind: Application | |
| metadata: | |
| name: kube-ops-view-demo | |
| finalizers: | |
| - resources-finalizer.argocd.argoproj.io | |
| namespace: argocd | |
| annotations: | |
| argocd-image-updater.argoproj.io/image-list: registry.digitalocean.com/tanmaybhat/kube-ops-view | |
| argocd-image-updater.argoproj.io/write-back-method: git:secret:argocd/gitlab-token |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: "3" | |
| services: | |
| grafana-agent: | |
| image: grafana/agent:v0.23.0 | |
| container_name: grafana-agent | |
| volumes: | |
| - /path/to/data/:/etc/agent/data | |
| - /path/to/agent.yaml:/etc/agent/agent.yaml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server: | |
| log_level: info | |
| http_listen_port: 12345 | |
| metrics: | |
| global: | |
| scrape_interval: 30s | |
| external_labels: | |
| environment: test-server | |
| configs: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - name: prometheus-server | |
| image: quay.io/prometheus/prometheus:v2.33.3 | |
| args: | |
| - '--storage.tsdb.retention.time=15d' | |
| - '--config.file=/etc/config/prometheus.yml' | |
| - '--storage.tsdb.path=/data' | |
| - '--web.console.libraries=/etc/prometheus/console_libraries' | |
| - '--web.console.templates=/etc/prometheus/consoles' | |
| - '--web.enable-lifecycle' | |
| - '--web.enable-remote-write-receiver' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| image: | |
| repository: grafana/loki | |
| tag: 2.4.1 | |
| pullPolicy: IfNotPresent | |
| ## Optionally specify an array of imagePullSecrets. | |
| ## Secrets must be manually created in the namespace. | |
| ## ref: https://kubernetes.io/docs/tasks/configure-pod-container/pull-image-private-registry/ | |
| ## | |
| # pullSecrets: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| apiVersion: argoproj.io/v1alpha1 | |
| kind: Application | |
| metadata: | |
| name: kube-ops-view-demo | |
| finalizers: | |
| - resources-finalizer.argocd.argoproj.io | |
| namespace: argocd | |
| annotations: | |
| argocd-image-updater.argoproj.io/image-list: registry.digitalocean.com/tanmaybhat/kube-ops-view | |
| argocd-image-updater.argoproj.io/write-back-method: git:secret:argocd/gitlab-token |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| #if any namespace needs to be excluded, add that in grep section | |
| ns=$(kubectl get ns --no-headers | grep -Ev 'kube-system|kube-public' | cut -d ' ' -f1 ) | |
| for namespace in $ns; do | |
| kubectl -n $namespace rollout restart deploy | |
| done |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| kind: Deployment | |
| metadata: | |
| name: nginx | |
| spec: | |
| replicas: 10 | |
| selector: | |
| matchLabels: | |
| app: nginx | |
| template: | |
| metadata: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Go | |
| on: | |
| push: | |
| branches: [ main ] | |
| tags: | |
| - 'v*.*.*' | |
| jobs: | |
| build: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #base image in which all stages are executed | |
| image: alpine | |
| # Ordered stages of the CI pipeline | |
| stages: | |
| - build_and_push | |
| build and push docker image: | |
| stage: build_and_push | |
| only: | |
| variables: |