-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to install? #13
Comments
ping @diamonwiggins |
@lmakarov sorry for the late reply. I will get the README updated this week as well. there is much to be done here, and we're just as excited about this project as you 😄 |
@lmakarov A quick and dirty to get you started should be:
Apply the following
|
@diamonwiggins thanks, that gave me a starting point. The final working solution ended up being way more complicated and took some time to figure out.
clone repo
kubectl apply -f config/crds/v1
---
apiVersion: v1
kind: Namespace
metadata:
name: kubeflare-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRole
metadata:
name: kubeflare
rules:
- apiGroups: ['']
resources:
- namespaces
- secrets
verbs: [get, list, watch]
- apiGroups: [crds.kubeflare.io]
resources: ['*']
verbs: [get, list, watch, update, patch, create, delete]
---
apiVersion: v1
kind: ServiceAccount
metadata:
name: kubeflare
namespace: kubeflare-system
---
apiVersion: rbac.authorization.k8s.io/v1
kind: ClusterRoleBinding
metadata:
name: kubeflare
roleRef:
apiGroup: rbac.authorization.k8s.io
kind: ClusterRole
name: kubeflare
subjects:
- name: kubeflare
namespace: kubeflare-system
kind: ServiceAccount
---
apiVersion: apps/v1
kind: Deployment
metadata:
name: kubeflare
namespace: kubeflare-system
spec:
replicas: 1
selector:
matchLabels:
app: kubeflare
template:
metadata:
labels:
app: kubeflare
spec:
serviceAccountName: kubeflare
containers:
-
name: kubeflare
image: replicated/kubeflare-manager:0.1.0
imagePullPolicy: IfNotPresent
env:
- name: CF_API_EMAIL
value: <CF_API_EMAIL>
- name: CF_ZONE_ID
value: <CF_ZONE_ID>
- name: CF_ZONE_NAME
value: <CF_ZONE_NAME>
- name: CF_API_KEY
#value: <CF_API_KEY>
valueFrom:
secretKeyRef:
key: api-key
name: cf-api-secret
resources:
limits:
cpu: 50m
memory: 64Mi
requests:
cpu: 10m
memory: 32Mi
kubectl -n kubeflare-system create secret generic cf-api-secret --from-literal api-key=<CF_API_KEY>
apiVersion: crds.kubeflare.io/v1alpha1
kind: APIToken
metadata:
name: cf-api-token
namespace: kubeflare-system
spec:
email: <CF_API_EMAIL>
name: "Global API Key"
#value: <CF_API_KEY>
valueFrom:
secretKeyRef:
key: api-key
name: cf-api-secret The use case for these APITokens is unclear to me. Also, the name
---
apiVersion: crds.kubeflare.io/v1alpha1
kind: Zone
metadata:
name: example.com
namespace: kubeflare-system
spec:
apiToken: cf-api-token
settings:
alwaysOnline: true
# Zone setting mapping can be found here:
# https://kubeflare.com/api/zone/#settings
apiVersion: crds.kubeflare.io/v1alpha1
kind: DNSRecord
metadata:
name: www.example.com
namespace: kubeflare-system
spec:
record:
content: 1.1.1.1
name: www.example.com
priority: 0
proxied: false
ttl: 1
type: A
zone: example.com |
@lmakarov thanks for working through this and awesome to see you were able to get it running despite the lack of documentation at the moment :).
Your confusion is warranted. First, you don't need any of the environment variables in the deployment example I gave you, so you can remove those and rely solely on the I got sidetracked with a few things this week, but still planning on working on this late tomorrow/this weekend. Please feel free to create additional issues for any other problems you run into/suggest any improvements! |
Will document helm in the future when a chart is created, but for now the instructions for kubectl have been updated #16 |
First off, very excited that this project exists!
I'm looking for a solution to manage our Cloudflare configuration alongside other K8s resources.
Unfortunately, I'm not able to try this project as as the installation docs seem to be outdated.
https://git.io/kubeflare leads nowhere:
The text was updated successfully, but these errors were encountered: