Skip to content

Instantly share code, notes, and snippets.

@stefanprodan
Last active May 31, 2022 16:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save stefanprodan/e6e1548f8761786c40552493d2d1818f to your computer and use it in GitHub Desktop.
Save stefanprodan/e6e1548f8761786c40552493d2d1818f to your computer and use it in GitHub Desktop.
---
apiVersion: v1
kind: Service
metadata:
name: weave-gitops-external
namespace: flux-system
spec:
ports:
- name: http-web
port: 80
protocol: TCP
targetPort: 9001
selector:
app.kubernetes.io/name: weave-gitops
type: LoadBalancer
---
apiVersion: networking.k8s.io/v1
kind: NetworkPolicy
metadata:
name: weave-gitops-ingress
namespace: flux-system
spec:
policyTypes:
- Ingress
ingress:
- from:
- namespaceSelector: {}
podSelector:
matchLabels:
app.kubernetes.io/name: weave-gitops
---
apiVersion: source.toolkit.fluxcd.io/v1beta2
kind: HelmRepository
metadata:
name: weave-gitops
namespace: flux-system
spec:
interval: 60m0s
url: https://helm.gitops.weave.works
---
apiVersion: helm.toolkit.fluxcd.io/v2beta1
kind: HelmRelease
metadata:
name: weave-gitops
namespace: flux-system
spec:
serviceAccountName: helm-controller
interval: 50m
chart:
spec:
version: "2.x"
chart: weave-gitops
sourceRef:
kind: HelmRepository
name: weave-gitops
interval: 65m
# https://github.com/weaveworks/weave-gitops/blob/main/charts/gitops-server/values.yaml
values:
resources:
requests:
cpu: 100m
memory: 64Mi
limits:
cpu: 1
memory: 512Mi
securityContext:
capabilities:
drop:
- ALL
readOnlyRootFilesystem: true
runAsNonRoot: true
runAsUser: 1000
adminUser:
create: true
username: admin
# Change password by generating a new hash on https://bcrypt.online
# bcrypt hash for password "flux"
passwordHash: "$2a$10$P/tHQ1DNFXdvX0zRGA8LPeSOyb0JXq9rP3fZ4W8HGTpLV7qHDlWhe"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment