这里主要贴一下配置文件
打包好的ARM处理器课程链接
jekyll的dockerfile,需要自取
FROM ruby:3.0.6-slim-buster RUN apt-get update && apt-get install -y --no-install-recommends \ build-essential \ zlib1g-dev \ && apt-get clean \ && rm -rf /var/lib/apt/lists/* RUN gem install \ http_parser.rb \ bundler \ jekyll EXPOSE 4000 VOLUME /site WORKDIR /site RUN bundle config set --local path 'vendor/bundle' && bundle config set force_ruby_platform true CMD bundle install && bundle exec jekyll serve -w --host=0.0.0.0
jekyll部署
apiVersion: apps/v1 kind: Deployment metadata: name: jekyll spec: replicas: 1 selector: matchLabels: app: jekyll template: metadata: labels: app: jekyll spec: containers: - name: jekyll image: jekyll:jekyll env: ports: - containerPort: 4000 name: jekyll volumeMounts: # name must match the volume name below - name: cs107e # mount path within the container mountPath: /site volumes: - name: cs107e persistentVolumeClaim: claimName: myclaim-jekyll
jekyll服务
apiVersion: v1 kind: Service metadata: name: jekyll spec: type: NodePort selector: app: jekyll ports: - port: 4000 targetPort: 4000 nodePort: ???
NameSilo
Views: 228