I’m setting up done on k8s, followed the doc.
deployment went well, but when I open the UI I get 401(unauthorised).
apiVersion: extensions/v1beta1
kind: Deployment
metadata:
name: drone
labels:
app: drone
spec:
replicas: 1
strategy:
type: RollingUpdate
rollingUpdate:
maxSurge: 1
maxUnavailable: 0
template:
metadata:
labels:
app: drone
component: server
spec:
containers:
- name: drone-server
image: "docker.io/drone/drone:1.0.0"
imagePullPolicy: IfNotPresent
env:
- name: DRONE_KUBERNETES_ENABLED
value: true
- name: DRONE_KUBERNETES_NAMESPACE
value: default
- name: DRONE_GITHUB_SERVER
value: https://github.com
- name: DRONE_GITHUB_CLIENT_ID
value: <client_ID>
- name: DRONE_GITHUB_CLIENT_SECRET
value: <client secret>
- name: DRONE_RPC_SECRET
value: <drone secret>
- name: DRONE_SERVER_HOST
value: drone.<company name>.io
- name: DRONE_SERVER_PROTO
value: http
- name: DRONE_USER_CREATE
value: username:ethicalaakash,admin:true
ports:
- name: http
containerPort: 80
protocol: TCP
I’m not sure where I’m doing wrong.